I have a form which has t-chart control on it.
And i have added a line series to the t-chart control and added few points in the line series.
Now i have a requirement to show pointers for couple of points on the series.
By doing
this.line1.Pointer.Visible = true;
This will display pointers for all the points on the series.
How to display pointers only selected points on the series?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Lakshmi,
Yes, you can easily do that using the OnGetPointerStyle event as shown here:
Yes, you can easily do that using the OnGetPointerStyle event as shown here:
Code: Select all
private void Form1_Load(object sender, System.EventArgs e)
{
line1.FillSampleValues();
line1.Pointer.Visible=true;
}
private void line1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e)
{
if (series.YValues[e.ValueIndex]%2==0)
{
e.Style=Steema.TeeChart.Styles.PointerStyles.Nothing;
}
}
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 |