Hello, I have a Linechart that has several datapoints. When I click on a datapoint, I want for that datapoint change color.
I used the ChartDrawItem event but it changes the color for all the datapoints. Protected Sub UltraChart1_ChartDrawItem(ByVal sender As Object, ByVal e As Infragistics.UltraChart.Shared.Events.ChartDrawItemEventArgs)If TypeOf e.Primitive Is Infragistics.UltraChart.Core.Primitives.PointSet AndAlso e.Primitive.Path Is Nothing Thene.Primitive.PE.Fill = Color.YellowEnd IfEnd Sub
Is it possible to change the color of one datapoint when only one is clicked?
A line in a line chart will only display as one color. If you want a point to be a different color you will have to draw an additional primitive over that point. To do this, you want to use the FillSceneGraph event.
Cool, I will give this a go as soon as i get the chance and post the code