Volume series and color each
Posted: Fri Nov 17, 2006 1:11 am
I have a volume series that I want to control the colour of each bar. I use the following
Neither of these options sets the colour of each bar, they execute and the serVolume(iPoint).Color is set to the colour that I want however they are not drawn witht he correct colour. The following code will set the colours for all bars to that specified so I figure it's something to do with the coloureach setting
Also could you explain the difference between the two colouring options.
It seems that on some series types the first option works and on others the second.
Thanks...
Code: Select all
'serVolume(iPoint).Color = System.Drawing.Color.FromName(row(ColourName))
serVolume.Colors(iPoint) = System.Drawing.Color.FromName(row(ColourName))
serVolume.ColorEach = True
Code: Select all
serVolume.Color = System.Drawing.Color.FromName(row(ColourName))
Code: Select all
'serVolume(iPoint).Color = System.Drawing.Color.FromName(row(ColourName))
serVolume.Colors(iPoint) = System.Drawing.Color.FromName(row(ColourName))
serVolume.ColorEach = True
Thanks...