Page 1 of 1

interactivity with charts

Posted: Sun Apr 23, 2006 10:10 am
by 9526683
Hello,
I use TeeChart Pro ActiveX Control V7 in an vb.net 2005 application.
My Chart consist of 3 series
How can I get interactivity with charts like URL linking, zooming etc. clicking on any point on chart.
I tried the OnMouseDown event like this:
TheClicked=Chart1.Series(0).Clicked(e.x,e.y)
y=chart1.series(0).pointLabel(TheClicked)
but how can I know what series is clicked instead of series(0)
and the point not always return me the right value
the most i recieve -1 in the "TheClicked" variable
may be there is a better way you can show me.
I want click the point and go to another window form with information about the the clicked point
or to see any tooltip onmouseover event
my difficaulty is to identify specific clicked poit

thank you for the help
best regards irena
my email:imaimon@elta.co.il



[/img]

Posted: Tue May 02, 2006 1:16 am
by Pep
Hi Irena,

how about using the OnClickSeries event of the TChart component ?

Code: Select all

Private Sub TChart1_OnClickSeries(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, ByVal Button As TeeChart.EMouseButton, ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)

End Sub
See help for details.