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

0
0

Hi,

I am selectively drawing colored point markers based off of the Dataseries’ Metadata. I do this by inheriting from the BasePointMarker base class and overriding the Draw method. I’m running into an issue because the IEnumerable points parameter represents the visible points within the viewport, but the List of Point Metadata seems to be for all points within the RenderableSeries. These counts will never match up unless every point in the RenderableSeries is visible within the chart viewport. This is problematic because a lot of the times, a user will be zoomed into a different area of interest of the chart, and the point markers will not be drawn accurately since the points and the corresponding Metadata will not match up.

So, is there a way to only get the metadata for the visible points in the chart? Or at least a way to figure out the starting index of where the visible points will match up to their corresponding metadata within the larger IPointMetadata list.

Thank you,

Jacob

Version
v5
  • You must to post comments
0
0

I solved it by first checking if the point was in bounds using the BasePointMarker.IsInBounds method.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.