Hello,
If I set points visible in a serie, it shows points in all the values of the serie.
Is it possible to show the points only in some points programming?
Thanks in advance
Point visible in some values and not in others
Re: Point visible in some values and not in others
Hi wakeup,
You can use null points to hide those you want. Add your points with Color.Transparent or change their state with SetNull method.
You can use null points to hide those you want. Add your points with Color.Transparent or change their state with SetNull method.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Point visible in some values and not in others
Hello wakeup,
I suggest other option using GetPointerStyle that I think you could use it too, if you want. Please, see next code and check if works as you want.
I hope will helps.
Thanks,
I suggest other option using GetPointerStyle that I think you could use it too, if you want. Please, see next code and check if works as you want.
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Styles.Line line1;
private void InitializeChart()
{
line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.FillSampleValues(10);
line1.Pointer.Visible = true;
line1.GetPointerStyle += new Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventHandler(line1_GetPointerStyle);
}
void line1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.GetPointerStyleEventArgs e)
{
if (e.ValueIndex < 3)
{
e.Style = Steema.TeeChart.Styles.PointerStyles.Nothing;
}
else
{
e.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
}
}
Thanks,
Best Regards,
Sandra Pazos / 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 |