Adding ToolTips to series
Posted: Tue Feb 12, 2008 9:41 am
Hi,
Please could someone explain how to add ToolTips (on a mouse over) to a line series (i.e. steema.teechart.styles.line). I've had a look at the help guide, demos as well as the tutorial (no. 18) but I can't get it to work. I'm using v3 in a webform and the tempchart property is set to file. So far I have the following (it's been simplified for the sake of brevity) and it works ok:
What do I have to add to the above to get ToolTips to show.
Thanks,
Norman
Please could someone explain how to add ToolTips (on a mouse over) to a line series (i.e. steema.teechart.styles.line). I've had a look at the help guide, demos as well as the tutorial (no. 18) but I can't get it to work. I'm using v3 in a webform and the tempchart property is set to file. So far I have the following (it's been simplified for the sake of brevity) and it works ok:
Code: Select all
Dim timeSeries As New Steema.TeeChart.Styles.Line
With timeSeries
.Color = Color.Blue
With .Pointer
.Style = Steema.TeeChart.Styles.PointerStyles.Circle
.HorizSize = 2
.VertSize = 2
.Visible = True
End With
.Title = "My Series"
.XValues.DateTime = True
End With
Dim timeSeriesAxis As New Steema.TeeChart.Axis
With timeSeriesAxis
.AxisPen.Color = Color.Blue
.StartPosition = 0
.EndPosition = 100
.Horizontal = False
.OtherSide = False
With .Title
.Angle = 90
.Caption = "My Series"
.Font.Color = Color.Blue
End With
.Ticks.Color = Color.Blue
End With
' Add series
WebChart.Chart.Series.Add(timeSeries)
' Add custom axis
WebChart.Chart.Axes.Custom.Add(timeSeriesAxis)
' Specify custom vertical axis for series
timeSeries.CustomVertAxis = timeSeriesAxis
' Add points to series
While MyDataSource.MoveNext
timeSeries.Add(x, y) 'x = date, y = double
End While
Thanks,
Norman