FlexChart - Get series displayed color?

Posted by: hdle on 8 March 2023, 3:12 am EST

    • Post Options:
    • Link

    Posted 8 March 2023, 3:12 am EST - Updated 8 March 2023, 3:31 am EST

    Hi,

    I am trying to get the series color that is shown on the chart. The purpose is to show it in the grid column to identify the series data column. In the attached image, the red horizontal bar in the grid should be the same color as the corresponding series.

    Unfortunately, I am unable to get the color from Series.Style.FillColor because that returns a blank/empty color. Is there a way to get the color of the chart series?

    C1.Win.FlexChart.4.dll v4.0.20193.393

    Thanks,

    Hai

  • Posted 9 March 2023, 8:31 pm EST

    Hi,

    Apologize for the delay in response.

    JFYI, FlexChart uses Standard Palette by default, which sets internally while rendering series symbols. We can’t fetch it.

    However, you can specify your own style for particular series and can fetch it easily.

    Please refer the attached sample for the same: FLexChartSample.zip

    Best Regards,

    Nitin

  • Posted 10 March 2023, 3:25 am EST

    Nitin,

    Thanks for the reply and the work around. It seems like that would be an easy thing to expose (the series style or at least the fill color).

    Thanks,

    Hai

Need extra support?

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

Learn More

Forum Channels