Page 1 of 1

Bar click event

Posted: Mon Jan 17, 2005 10:32 pm
by 8127860
Hi all,

Does anybody know how to implement Bar Click Event? I found the point click event on the help file. However, it doesn't work for me when I tried to use it.

Here is my code for clicking event.

Private Sub WebChart1_ClickSeries(ByVal sender As System.Object, ByVal s As Steema.TeeChart.Styles.Series, ByVal valueIndex As Integer, ByVal e As System.EventArgs)
'
Dim tChart As Steema.TeeChart.Chart
tChart = CType(sender, Steema.TeeChart.Web.WebChart).Chart

ClickedX = s.CalcXPos(valueIndex)
ClickedY = s.CalcYPos(valueIndex)
MsgText = "Series: " _
& tChart.Series.IndexOf(s).ToString() _
& (Chr(13) + Chr(10)) & "Value: " _
& (s.YValues.Item(valueIndex).ToString("#0.00"))
End Sub

Thanks,
Amy

Posted: Tue Jan 18, 2005 1:06 am
by Pep
Hi Amy,

there's an example included in the installation which shows how to do this, you can find it under :
C:\Program Files\Steema Software\TeeChart for .NET v1\TeeChartForNET\WebFormVB
You can just change the Series type for the first Chart (point to a Bar) , run and get the result you are looking for.

Posted: Tue Jan 18, 2005 3:29 pm
by 8127860
Thanks. I figured out how to do it.

Amy