Hi,
I have a composite chart with two layers. I applied an override to one column but it affected the two layers instead of only the column of the first layer. Is there a way to accomplish this?
Instead of using the Overrides collection, you can change the PE property in each individual point in a series. So, for example, if you have a layer containing a NumericSeries with 3 points and you want to change the color of the second point, you can saynumericSeries.Points[1].PE = new PaintElement(Color.Red);
Thanks Max for the reply.
It tried what you suggested but it didn't affect the color.
I managed to do it in the ChartDrawItem() event
If TypeOf e.Primitive Is Box Then Dim b As Box = Nothing b = CType(e.Primitive, Box) If Not b Is Nothing AndAlso b.Row = 0 AndAlso b.Column = _maxValIndex AndAlso b.Layer.LayerID = "chartLayer2" Then b.PE = b.PE.Clone() ' Set the Fill color b.PE.Fill = Color.Yellow ' Color it's border green b.PE.Stroke = Color.Green ' Make it's border 1 pixels thick b.PE.StrokeWidth = 1 End If End If
I had to debug to know that b.Layer.LayerID = "chartLayer2"