ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Deleting plotted line.
Posted by Niket on Apr-21-2014 13:59
Hi,

  I have multiple y parameter, for each parameter there is check box to make it visible in
chart plot area. clicking on check box makes respective parameter appears and disappear.

is there any provision through which i can able to delete the plotted line by say having right
click on plotted line or having some hot spot area. By deleting the line the respective check
box will unchecked .

Thanks in advance.

Regards
Niket

  Re: Deleting plotted line.
Posted by Peter Kwan on Apr-21-2014 19:43
Hi Niket,

ChartDirector charts are clickable. When you click on the data points or the line, a
ClickHotSpot (I assume you are writing a Windows Forms application) "HotSpotClick" event
will occur. In the event handler, you can write any code you like. For example, you can
write code to uncheck the checkbox. I assume you have already had the code that
removes the line from the chart when the checkbox is unchecked.

Hope this can help.

Regards
Peter Kwan

  Re: Deleting plotted line.
Posted by Niket on Apr-22-2014 13:14
Hi Peter,

   Thanks for the solution but i want something different. what i want is when i draw track
line in pause mode of chart, i displayed track line with dataset name and its value at the
point. is there any way at the end of the cursor label can we put some cross image to
enable users to delete that line from chart plot area. for example for one Y  parameter  say
engineOilPressure:100 (X). when user move the mouse over chart plot area entire cursor
label display like above but when user press (X) that plotted line will disappear. Can you
suggest me some way to do this.

Thanks for your valuable time.

Regards
Niket

  Re: Deleting plotted line.
Posted by Peter Kwan on Apr-23-2014 04:02
Hi Niket,

The track cursor label is drawn by your code, so your code knows the positions of the
labels. Your code can therefore put normal button controls (or other .NET controls) after
the labels. When the button is pressed, in the button click event handler, you can hide the
line.

Hope this can help.

Regards
Peter Kwan