This stacked column chart visualizes global cotton production trends over the years, with data points enhanced by data labels.
In this example, you can see how to render and configure a stacked column chart. The stacked column chart stacks points in the series vertically. You can also use the stackingGroup
property to group stacked collections based on category. This chart displays data labels for individual points and the total value on top of each stack.
Tooltips
are enabled in this example. To see the tooltip in action, hover over a point or tap on a point in touch-enabled devices.
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use stacking column series, we need to inject StackingColumnSeries
module into services
.
More information on the stacked column series can be found in this documentation section.