Props
array
The source data. Each element should be an object.
number | string
The width of chart container. Can be a number or a percent string like “100%”.
number | string
The height of chart container. Can be a number or a percent string like “100%”.
object
default:"{top: 5, right: 5, bottom: 5, left: 5}"
Empty space around the container.
number | string
default:"50%"
The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width.
number | string
default:"50%"
The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height.
number | string
default:"0"
The inner radius of the chart. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius.
number | string
default:"80%"
The outer radius of the chart. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius.
number
default:"0"
Angle in degrees from which the chart should start.
number
default:"360"
Angle, in degrees, at which the chart should end.
'centric' | 'radial'
default:"radial"
The layout of chart defines the orientation of axes, graphical items, and tooltip.
number | string
default:"10%"
The gap between two bar categories.
number | string
default:"4"
The gap between two bars in the same category.
number | string
The width or height of each bar.
number
The maximum width of all the bars.
'sign' | 'expand' | 'none' | 'wiggle' | 'silhouette' | 'positive'
default:"none"
The type of offset function used to generate the lower and upper values in the series array.
boolean
default:"false"
If
false, stacked items will be rendered left to right. If true, stacked items will be rendered right to left.number | string
Charts with the same syncId will synchronize Tooltip and Brush events.
'index' | 'value' | function
default:"index"
Customize how the charts will synchronize tooltips and brushes.
boolean
default:"true"
Turn on accessibility support for keyboard-only and screen reader users.
boolean
default:"false"
If true, then it will listen to container size changes and adapt the SVG chart accordingly.
string
CSS class name for the chart container.
CSSProperties
Inline CSS styles for the chart container.
string
The unique id of chart.
number | 'raf'
default:"'raf'"
Decides the time interval to throttle events.
function
The customized event handler of click in this chart.
function
The customized event handler of mouseenter in this chart.
function
The customized event handler of mousemove in this chart.
function
The customized event handler of mouseleave in this chart.