AreaChart is a cartesian chart variant that allows for easy visualization of stacked data.
Basic Example
Loading...
Simple
Loading...
Stacking
You can use the stacked
prop to stack all areas on top of each other. You can also use the stackId
prop on a series to create different stack groups. See CartesianChart for more details.
Loading...
Negative Values
When an area chart contains negative values, the baseline automatically adjusts to zero instead of the bottom of the chart. The area fills from the data line to the zero baseline, properly showing both positive and negative regions.
Loading...
Area Styles
You can have different area styles for each series.
Loading...