You can add labels to display the value of each data point by using the DataLabel property. You can even specify the position where you want to display your labels by setting the LabelPosition property.
The image below shows how labels appear on each data point on the FlexChart.
The following code example demonstrates how to add labels to the FlexChart. This example uses the sample created in the Quick Start section.
Razor |
Copy Code
|
---|---|
.DataLabel(dl => dl.Position(C1.Web.Mvc.Chart.LabelPosition.Top).Content("{y}"))
|