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

Message ListMessage List     Post MessagePost Message

  Highlight at point
Posted by Soren Munk on Mar-16-2012 19:14
Hi, is there a way to highlight a point on a chart?

We are using the AxtiveX version of GraphDirector, and are somtimes showing the data that is being plottet below the charts(scatter and lines) in a list.
Now the users would like to be able to click a row in the list and see that point highlighted somehow on the chart, is there an easy way to accomplish that?

Thanks,
Soren
Propulsion Dynamics.

  Re: Highlight at point
Posted by Peter Kwan on Mar-17-2012 05:40
Hi Soren,

In your chart drawing routine, you may include additional code that draws the selected line on the top (see Layer.moveFront), perhaps using a thicker line width. Your charting code can check the state of the list to decide what to highlight. If you would like to highlight a point, you can add a scatter layer with a symbol (say a large red circle) for just that point.

When the state of the list change (when the user selected an item), you just need to call your chart drawing routine again. It should then draw a new chart based on the new state of the list.

The code structure is something similar to the "Interactive Financial Chart" (although the Interactive Finance Chart is much more complicated). The charting code always draws the chart based on the states of the controls on the left side. Whenever the state of the control changes, the charting routine is called again to update the chart.

Hope this can help.

Regards
Peter Kwan

  Re: Highlight at point
Posted by Soren Munk on Mar-17-2012 19:02
Thanks for your answer Peter, I thought about doing it that way too, was just wondering if there was a build-in method for highlight'ening a particular point.
Soren.