Skip to main content
AreaChart renders a chart with data represented as filled areas.

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%”.
'horizontal' | 'vertical'
default:"horizontal"
The layout of chart defines the orientation of axes, graphical items, and tooltip.
object
default:"{top: 5, right: 5, bottom: 5, left: 5}"
Empty space around the container.
number | 'dataMin' | 'dataMax' | 'auto'
The base value of area.
number | string
default:"10%"
The gap between two bar categories, which can be a percent value or a fixed value.
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 in a horizontal chart, or maximum height in a vertical chart.
'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. Only applicable for stacked Area charts.
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.