Pre loader

HitTest without interpolation always fault

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


We are using SciChart 2.2.3441
And i need to detect hit only at DataPoint,
RenderableSeries.HitTest(hitTestPoint, true) – works fine!
But RenderableSeries.HitTest(hitTestPoint, 10, false) – always returns IsHit = false. No matter what is hitTestRadius.
See attached project for example

  • You must to post comments
Best Answer

Lal )) I just found the reason.
I created PointMarkerTemplate old school WPF style )) HitTest without interpolation needs PointMarker.Width and PointMarker.Height, and if you created PointMarker like that:

           <ControlTemplate >
                  <Rectangle  Fill="Orange" Width="10" Height="10"/>

So PointMarker.Width == Nan and PointMarker.Height == Nan.

Right way is :


           <pm:EllipsePointMarker Width="10" Height="10" Fill="Green"></pm:EllipsePointMarker>
  • You must to post comments

I don’t know why i can’t post code here

  • Andrew Burnett-Thompson
    Hi Ivan, to post code simply indent your code by 4x spaces, or click the 0101 'code' button on the toolbar.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.