Page 1 of 1

Issues with GetPointerStyle event

Posted: Mon Jun 21, 2010 7:02 pm
by 16056172
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

Re: Issues with GetPointerStyle event

Posted: Wed Jun 23, 2010 8:27 am
by narcis
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.