Determine the colours used by the ASP.NET Chart control

Posted by Moose Factory on Stack Overflow See other posts from Stack Overflow or by Moose Factory
Published on 2009-11-25T09:54:09Z Indexed on 2010/04/04 7:43 UTC
Read the original article Hit count: 452

I'd like to find out which colours are used for a particular pallette in the ASP.NET Chart control.

I already know there is an enum on the Chart class to set the palette, e.g.

myChart.Palette = ChartColorPalette.Berry;

But I'd like to know which colours belong to the palette.

Before anyone asks - as I know you will - the reason I need to know the colours is because I want to create my own legend outside of the chart image.

I also know that I can set my own colours on the DataPoints for the chart, but I'd rather not have to implement my own palette.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-charts