pankaj.garg 0 Junior Poster in Training

Hello,

I am using MScharts and want to mark individual datapoints in the chart. I am using following code for adding marker -

with mschart1.plot.seriescollection.item(3)
.SeriesMarker.Auto = False
.DataPoints.Item(-1).Marker.Visible = True
.DataPoints.Item(-1).Marker.Size = 60
.DataPoints.Item(-1).Marker.Style = VtMarkerStyleX

By using above, I am able to mark the entire series, but the problem is I am not able to select a individual datapoint.

The .Item value has to be always -1 (any other value gives an out of bound error)

Please help me to select a specific datapoit in the series on which i can mark.

Thanks & Regards,

Pankaj

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.