Pre loader

Is there a way to get only the visible MetaData for the points within the overridden BasePointMarker#Draw() method

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

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies