Bar click event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amy
Newbie
Newbie
Posts: 8
Joined: Mon Nov 15, 2004 5:00 am

Bar click event

Post by Amy » Mon Jan 17, 2005 10:32 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Jan 18, 2005 1:06 am

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.

Amy
Newbie
Newbie
Posts: 8
Joined: Mon Nov 15, 2004 5:00 am

Post by Amy » Tue Jan 18, 2005 3:29 pm

Thanks. I figured out how to do it.

Amy

Post Reply