Chart Radar

Radar chart is a type of chart used to depict multivariate data in two-dimensional form. Data is displayed in the form of axes that shine like spokes on a wheel, and each axis represents a different dimension or variable.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab

Usage

import { RadarChart } from 'bio-bind-ui';
<RadarChart
  data={{
    datasets: [
      {
        backgroundColor: 'transparent',
        borderColor: '#E86400',
        borderWidth: 1,
        data: [18, 14, 18, 13, 14, 12],
        label: 'Dataset 1',
        pointBackgroundColor: '#E86400',
      },
      {
        backgroundColor: 'transparent',
        borderColor: '#0098B0',
        borderWidth: 1,
        data: [13, 14, 19, 16, 15, 11],
        label: 'Dataset 2',
        pointBackgroundColor: '#0098B0',
      },
      {
        backgroundColor: 'transparent',
        borderColor: '#F04438',
        borderWidth: 1,
        data: [13, 14, 19, 16, 15, 10],
        label: 'Dataset 3',
        pointBackgroundColor: '#F04438',
      },
    ],
    labels: ['Data 1', 'Data 2', 'Data 3', 'Data 4', 'Data 5'],
  }}
  id='radar-chart'
  legendPosition='top'
  mode='light'
  size='md'
/>

Examples (optional)

Size

Use the size sm, md, or lg to change the size of the radar chart.




Mode (optional)

Use the mode light or dark to change the mode of the radar chart.


Props

PropsRequiredDefaultTypedescription
idtrue-stringA unique identifier for the radar chart.
datafalse-ChartData<'radar'>The data object required by Chart.js to render the radar chart. It includes labels for the x-axis and datasets containing the values and styles for the radar.
optionfalse-ChartOptions<'radar'>Optional configuration options for the radar chart. These options control the chart behavior, responsiveness, and appearance.
pluginsfalse-Plugin<"radar">[]>To host and manage a set of plugins of type radar, which can provide additional functionality related to radar technology in an application.
modefalselightlight darkThe theme mode of the radar chart (light or dark).
sizetruemdsm md lgThe size of the radar chart.
widthfalse-numberValue information from the width of the radar chart.
heightfalse-numberValue information from the height of the radar chart.
hideLegendfalsefalsebooleanIf true, the legend information of the radar chart will be hidden.
legendPositionfalsetoptop bottom right leftThe legend position of the radar chart.
BIND © Biofarma Innovate Next-level Design .