Jump to content
Software FX Community

Scatter Plots


Recommended Posts

I would like to highlight the last point in a scatter plot by changing its attributes. I used the following peice of code:

chtGraph.Points(0, chtGraph.Data.Points - 1).MarkerShape = MarkerShape.InvertedTriangle

chtGraph.Points(0, chtGraph.Data.Points - 1).MarkerSize = 7

chtGraph.Points(0, chtGraph.Data.Points - 1).Color = Color.Red

On some graphs more than one point has its attribute changed. The points whose attributes changed do not have similar values so I am a bit confused how the above statements can change the attribute of more than one point. Any thoughts??

Link to comment
Share on other sites

>> On some graphs more than one point has its attribute changed.

Have you noticed any patterns on when this happens? Can you post a saved chart file as an attachment to see if we can duplicate this issue?

I tried your code on several charts and only the last point attributes were changed.


Link to comment
Share on other sites

  • 2 weeks later...

I think I have worked out the problem. I use the same chart to scroll through different items on the graph. Each time the graph is redrawn i work out the first and last point and change their attributes but I think the last point from the previous draw of the graph has still got the altered attribute so I need to reset all point attributes first. How do I ensure the attribnutes are reset each time the graph is redrawn

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...