SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Answered
0
0

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

Attachments
  • You must to post comments
Best Answer
0
0

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:

<renderableSeries:FastLineRenderableSeries.PointMarkerTemplate>

</renderableSeries:FastLineRenderableSeries.PointMarkerTemplate>

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

Right way is :

xmlns:pm=”clr-namespace:Abt.Controls.SciChart.Visuals.PointMarkers;assembly=Abt.Controls.SciChart.Wpf.2.2″

<renderableSeries:FastLineRenderableSeries.PointMarker>

</renderableSeries:FastLineRenderableSeries.PointMarker>

  • You must to post comments
0
0

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

  • Andrew
    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.