Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1660
How to change line colors in ultradatachart ?
posted

Hi,

I have a Ultradatachart and ultradoughnut chart (Version 18.2) as follows.

Ultra Data Chart

The line color in the chart is being assigned randomly.

I would like to use different set of colors.

For example: Default colors being assigned in the chart shown here are sky blue, orange, violet, green.

I would like to use the following set of colors : Green, Red, Yellow.

Could someone help on this ?

That would be great if someone attach sample to help.

Thanks

  • 960
    Suggested Answer
    Offline posted

    Hello Thangachan Kuriyan,

    As to line colors, you can use Brush property in LineSeries.

    LineSeries lineSeries1 = new LineSeries();
    lineSeries1.Brush = Color.Green;

    Regarding doughnut chart, use Brushes property in RingSeries.

    RingSeries ringSeries = new RingSeries;
    ringSeries.Brushes = { Color.Green, Color.Red, Color.Yellow };

    I hope those will help.