Mschart column colour

wildfire1982

Well-known member
Joined
Oct 23, 2003
Messages
50
Location
Southampton
Hello folks, does anyone know how to retrieve the colour of the column in an mschart control. I have a varying number of columns, where the chart creates a colour to represent this. Anyone know how i can get hold of it?

Thanks

Chris
 
Ellow again,

I finally managed to do it. Its not the nicest looking code but it works so just in case anyone else needed to do it, here it is.

Code:
Dim colorThing As Color = Color.FromArgb(showResults.AxMSChart1.Plot.SeriesCollection(loopcounterProps).DataPoints(-1).Brush.FillColor.Red, showResults.AxMSChart1.Plot.SeriesCollection(loopcounterProps).DataPoints(-1).Brush.FillColor.Green, showResults.AxMSChart1.Plot.SeriesCollection(loopcounterProps).DataPoints(-1).Brush.FillColor.Blue)
            showResults.RichTextBox1.SelectionColor = colorThing

It was needed for a sort of legend style thing which i needed more control.
 
Back
Top