Issues with GetPointerStyle event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vk_nomura
Newbie
Newbie
Posts: 12
Joined: Mon May 17, 2010 12:00 am

Issues with GetPointerStyle event

Post by vk_nomura » Mon Jun 21, 2010 7:02 pm

Intent:

To filter series based on trade size. Series associated with this data is Points and I have associated a GetPointerStyle to it.
X axis shows datetime
Y axis with trade sizes

On the chart I have 1 fastLine and 1 Volume series.

So whenever I receive the GetPointerStyle event, the data associated with "series" parameter is not my Points series data.

void pointStyle_GetPointerStyle(CustomPoint series, GetPointerStyleEventArgs e)
{
if (e.ValueIndex >= 0 && series.YValues.Count > e.ValueIndex)
{
if (series.YValues[e.ValueIndex] < 25) // Do not show traders less than 25
e.Style = PointerStyles.Nothing;
else
Console.WriteLine("Skipping trade Trade Size {0} Min. Trade Size {1}", series.YValues[e.ValueIndex], showTradesWithSize.Value);
}
}

Please advise.

Regards,
Vish

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Issues with GetPointerStyle event

Post by Narcís » Wed Jun 23, 2010 8:27 am

Hi Vish,

Most likely the problem is that your series don't fire this event as they don't have visible Pointers. Neither FastLine nor Volume series have Pointer property. To use that you should use Points, Line or any other series style that has Pointer property and it should be set to visible:

Code: Select all

      Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
      line1.Pointer.Visible = true;
      line1.FillSampleValues();
If the problem persists please attach a simple example project we can run "as-is" to reproduce the problem here.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply