Nevron Forum

How to achieve combined functionality of Tooltip Cursor tool and data cursor tool

https://www.nevron.com/Forum/Topic5246.aspx

By Baiju PS - Monday, June 20, 2011

Dear All,

We are trying to achieve the functionalities of both tooltip cursor tool and data cursor tool. We have created the chart for multiple tags with timestamp on the X-Axis and values on the Y-axis. When we place the data cursor tool on the chart, we want to display the tag value,tag name and time stamp on  custom labels(tooltip) along the vertical axis for all the trends created.

For example, we have created trends for 5 tags for a start time and end time. When we place the data cursor for a particular time stamp, we want to display the time stamp, and values along the vertical data cursor tool on custom labels. The idea is to compare the values of different tags at a particular timestamp.

If any of you have already developed this kind of functionality using Nevron Chart kindly share the same. Your comments/advices on this topic is greatly appreciated.

Thanks and Regards,

Baiju.P.S

 

By Nevron Support - Wednesday, June 22, 2011

Hi Baiju,

We do not have an example for this case, but in general you can mix different tools in the controller collection. Also you can find the HitTest function useful in this case - check out the following example:

All Examples\Interactivity\Mouse Events

In general almost all the functionality performed by the tools can be accomplished by intercepting the MouseDown/MouseMove/MouseUp events of the chart and using HitTest to determine the chart object beneath the mouse...

By Baiju PS - Wednesday, June 22, 2011

Hello Support,

Thank you for your reply. For better clarity on my requirements i have attached a sample screen shot. Please find it.

The diagram shows the three smoothline series created for 6minutes of data points. Timestamp on the X- axis and values on the Y-axis. Now when we place the cursor anywhere in the chart, on the vertical cursor we want to display the following in Labels:

       1. On top, the timestamp which is common for all the smoothline series.

       2. Values(datapoints) on respective location where the vertical cursor touches the smoothline datapoints.

We are facing some difficulties in achieving the above stated functionalities :

       1. How to find the location of datapoints which touches the vertical cursor?

       2. How to create labels at different locations in the chart area?

Please advice us on the various steps involved in achieving these functionalities.

Your early reply is greatly appreciated.

Thanks and regards,

Baiju.P.S