How can I set different pointer styles or LinePen for different indexes in a line series in VB.NET?
For instance I would like to have even segments red and odd ones green in an alternate way. Same with circle and square pointers.
Help please!!
How do I individually set properties for points in a series?
Hi,
you should be able to do this using the OnGetPointerStyle event (setting pointer Visible to true). The problem is that there's a bug in the drawing algoritm and does not paint correct pointers for individual points. It's added on our defect list and a fix for it will be considered to inclusion for the next maintenance releases. I meantime I've not found any workaround.
you should be able to do this using the OnGetPointerStyle event (setting pointer Visible to true). The problem is that there's a bug in the drawing algoritm and does not paint correct pointers for individual points. It's added on our defect list and a fix for it will be considered to inclusion for the next maintenance releases. I meantime I've not found any workaround.
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 52
- Joined: Tue Mar 04, 2003 5:00 am
Is this fixed in the August 1 release ?
Hi,Pep wrote:Hi,
you should be able to do this using the OnGetPointerStyle event (setting pointer Visible to true). The problem is that there's a bug in the drawing algoritm and does not paint correct pointers for individual points. It's added on our defect list and a fix for it will be considered to inclusion for the next maintenance releases. I meantime I've not found any workaround.
Is this fixed in the August 1 release (OnGetPointerStyle event) ? Can you provide an example of how to use it ?
Thanks.
KSB
Hi.
Sure, here is C# example, using series OnGetPointerStyle event:
Additionally you can also change individual point Pointer.Style (by accessing e.Style).
Sure, here is C# example, using series OnGetPointerStyle event:
Code: Select all
private void Form1_Load(object sender, System.EventArgs e)
{
points2.FillSampleValues(10);
points2.Pointer.Pen.Color = Color.Blue;
}
private void points2_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e)
{
// if even, yellow, otherwise blue
if (e.ValueIndex % 2 == 0) points2.Pointer.Pen.Color = Color.Yellow;
else points2.Pointer.Pen.Color = Color.Blue;
}
Marjan Slatinek,
http://www.steema.com
http://www.steema.com