Hi TeeChart
I have my line series ‘Y1’ and I want to display every forth point. I thing I have GetPointerStyle OK, but I have no way to call it. I have taken the various examples in the demo and off the site and run them through the C# to VB translators but they don’t come out clean enough for me to see were they are called from. I have a total of six separate series and each has the option of spacing the pointers.
How and where do I call GetPointerStyle?
Private Sub Y1_GetPointerStyle(ByVal series As Steema.TeeChart.Styles.CustomPoint, ByVal e As Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs) Handles Y1.GetPointerStyle
If e.ValueIndex Mod 4 <> 0 Then
e.Style = Steema.TeeChart.Styles.PointerStyles.Nothing
Else
e.Style = Steema.TeeChart.Styles.PointerStyles.Triangle
End If
End Sub
Thanks
VB Help with GetPointerStyle
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Avatar,
To fire the GetPointerStyle event you should set your series pointer to visible:
You can also do it at design-time using the chart editor.
To achieve that behaviour you could also try TChart's BeforeDraw or BeforeDrawSeries events or Series's BeforeDraw event.
To fire the GetPointerStyle event you should set your series pointer to visible:
Code: Select all
Line1.Pointer.Visible = True
To achieve that behaviour you could also try TChart's BeforeDraw or BeforeDrawSeries events or Series's BeforeDraw event.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |