Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
UltraWebChart - LineChart Datapoint Color
posted

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 Then
e.Primitive.PE.Fill = Color.Yellow
End If
End Sub


Is it possible to change the color of one datapoint when only one is clicked?

 

 

Parents
  • 10880
    Verified Answer
    posted

    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.

Reply Children
No Data