Migrating from C1Chart to FlexChart

Posted by: siniawski.jj on 21 April 2026, 4:00 pm EST

  • Posted 21 April 2026, 4:00 pm EST

    I am in the process of migrating my charts from C1Chart .NET Framwork 4.8 to FlexChart in .NET 10 Winforms. I have been able to get most functionality converted but I am using Series.SetData() to populate the Series and the DataLabel seems to be unable to pull any additional y values from the dataset. ie I have a percentage as the primary (index 0) ydata values, and index 1 as the count, but I can not access that count in the datalabel. Is there a work around for this?

    Also is there a way to set the X Axis string Labels without binding?

  • 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

    1. 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.
    2. 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.

Need extra support?

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

Learn More

Forum Channels