Page 1 of 1

Highlight data on a chart

Posted: Tue Jun 13, 2006 12:58 pm
by 8119889
Hi,

I would like to allow my users to move a vertical line across the chart using the mouse or arrow keys and where the line crosses data series extract the value at that point.

What's the best way of achieving this?

Thanks in advance...

Posted: Tue Jun 13, 2006 1:44 pm
by narcis
Hi Glynn,

There's an example of that at TeeChart features demo. The example is What's New?\Welcome !\New in Series\Interpolating line series. The demo can be found at TeeChart's program group.

Can't find the sample

Posted: Wed Jun 14, 2006 9:42 am
by 8119889
Thanks for the reply but I can't find the sample you mention in the Demo project. I have installed the UpdateBuild for Version 1 from my customer page but do I need to install Version 2.

I think my license only covers me for Version 1 because I can't download Version 2 from my customer page, if this is the case how do I upgrade?

Thanks..

Posted: Wed Jun 14, 2006 10:09 am
by narcis
Hi Glynn,
Thanks for the reply but I can't find the sample you mention in the Demo project. I have installed the UpdateBuild for Version 1 from my customer page but do I need to install Version 2.
This example is only included with version 2 but I think this approach should work with version 1 as well. You can download TeeChart for .NET v2 evaluation version from TeeChart for .NET v1 download area to obtain the demo. If you want I can also send this example form to you.
I think my license only covers me for Version 1 because I can't download Version 2 from my customer page, if this is the case how do I upgrade?
You can upgrade your v1 license to v2 on-line here.

Looks good but....

Posted: Wed Jun 14, 2006 3:53 pm
by 8119889
Got the sample thanks but have one question...

In my application the user will use the movable line to mark parts on the chart of 'interest'. In the sample, if i move the line to an area of interest I can't move my mouse away from the chart without it moving the line. I would like my users to hit a button to 'record' that position.

Which parts of the code handles the movement of the line because maybe then I can pause this when on a mouse click event on the chart.

Thanks...

Posted: Thu Jun 15, 2006 7:51 am
by narcis
Hi Glynn,

It is the cursorTool1_Change event. When the user chooses to keep this position on record you could add a new cursor tool with the same event as the previous tool and freeze the existing cursor tool by disabling its FollowMouse property and manually setting a fix position for it.