Example of undefined in React Chart Component

/
/
Annotation

This sample illustrates speed data for the Interlagos circuit. In area-based series, data points can be annotated using symbols.

More Details...

Loading....
Description

In this example, you can see how to render and configure annotation feature in chart. We have used a pie chart to depict the sales for each year using annotation support, while selecting a particular year from the StackedColumn series, the respective data's are showed in pie. An annotation can hold any html element as its content, here we have added the Pie chart as its content.



Injecting Module

Chart component features are segregated into individual feature-wise modules. To use annotation feature in chart, we need to inject ChartAnnotation module into services.

More information on the chart annotation can be found in this documentation section.