FlexChart – Custom Label Spacing and Values Like Old C1Chart UnitMajor / UnitMi

Posted by: andrea.davoli on 13 August 2025, 9:55 am EST

  • Posted 13 August 2025, 9:55 am EST

    Hi,

    In the old C1Chart I was able to use UnitMajor and UnitMinor to set the spacing between bars on the X or Y axis.

    Moreover, the label values shown on the axis could be set arbitrarily, not necessarily tied to the position of the major/minor grid lines — as in the example below:

    This allowed me to achieve a result like this:

    With FlexChart, I cannot find the same functionality.

    The closest I get is by using MajorUnit and MinorUnit, but these seem fixed to the line spacing, so I cannot assign custom label values independently:

    Is there any way to replicate the old C1Chart behavior in FlexChart?

    Thanks in advance for your help!

  • Posted 14 August 2025, 7:54 am EST

    Hi Andrea,

    You can achieve the same behavior in FlexChart as shown in C1Chart by adding all the data points/labels for the X-axis to the FlexChart.AxisX.DataSource property. A Dictionary can be used to define these points, and you can set the FlexChart.AxisX.Binding property to “Key,Value” so that it maps the dictionary correctly.

    Please refer to the updated sample project from your previous thread - FlexChartMultipleSeries_Updated.zip

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels