This React Area Chart example visualizes music sales data by format in US by using a default area series in the chart.
In this example, you can see how the area type chart can be rendered and configured. It is like the line chart, which represents time-dependent data and shows trends at equal intervals, but the area is closed and filled with the color of the series.
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use area series, we need to inject
AreaSeries
module into services
.
More information on the area series can be found in this documentation section.