This sample illustrates data label template support in charts. Each data label for each point is rendered using the template.
The React Charts data label template feature allows you to change the appearance and behavior of the data label for each data point using the Template property in ChartDataLabel.
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use DataLabel, we need to inject
DataLabel
module into services
.
More information on the Crosshair can be found in this documentation section.