|
Deletion of Points on the graph |
Posted by John on May-03-2013 20:11 |
|
Hi,
How can we delete some specified points (x,y coordinates) on the graph?
Thanks InAdvance,
John. |
Re: Deletion of Points on the graph |
Posted by Peter Kwan on May-04-2013 04:48 |
|
Hi John,
To delete a point, please remove the point from your data, then draw the chart with the updated data.
If you would like the users of your program to be able to interactively remove a point, you would need to develop the necessary user interface. For example, you may put your data into a spreadsheet like user interface to allow your user to edit the data (including deleting some data), then you may draw the chart with the update.
As another example, ChartDirector supports clickable hot spots, which means the data points can have mouse events. You may handle the mouse click event of the data point, so that when the user clicks on a point, your code can delete that point from your data, then draw the chart with the updated data.
Hope this can help.
Regards
Peter Kwan |
|