Posted 22 April 2026, 6:22 am EST
Hello,
FlexChart primarily tracks the index and the main Y-value. To display extra data (like your counts array) in the label, you can:
DataLabel with additional y value
- Since you are using Series.SetData, you can use FlexChart.LabelRendering event. It allows you to intercept the label before it draws, look up the corresponding value in your counts array using the point’s index, and manually set the text.
- In case you use a List as your DataSource, then you can use DataLabel.Content property to refer to the property name in your class. You can set the properties to be shown using template like “{y:p0} (Count:{Count})” where count refers to the count property in your custom class.
Set X Axis string
You can assign a simple collection of objects to the AxisX.DataSource. By setting the AxisX.Binding = “Value,Text”, you tell the chart:
- Value: Where on the scale the label should appear (0, 1, 2…).
- Text: What string should actually be displayed (“January”, “February”…).
If you want Axis labels to appear in a certain format, you create your own custom format and apply it to the axis labels. For more information, refer to https://developer.mescius.com/componentone/docs/win/online-flexchart/elements/axes/axis-labels#custom-format-axis-labels
We have attached a sample project (flexChartFrm.zip) for your reference. Please have a look at it, and if you have any other concerns, feel free to ask.
Regards,
Uttkarsh.