Pre loader

How to Replace Major and Minor Grid lines With Points at Intersection point

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 All!
I need to replace major and minor grid lines in sci-chart surface with points at Intersection point; like attached image. is there any way to do that in WPF?

Version
6
Images
  • You must to post comments
0
0

Hi there,

Thanks for your question. Although this is not available out of the box, it is not hard to implement this behavior through CustomRenderbaleSeries API. Coordinates of Gridlines can be obtained using Axis API, specifically TickProvider and TickCoordinatesProvider:

        var axisParams = (IAxisParams)XAxes[0];

        var majorTicks = TickProvider.GetMajorTicks(axisParams);
        var minorTicks = TickProvider.GetMinorTicks(axisParams);

        var coordinates = TickCoordinatesProvider.GetTickCoordinates(minorTicks, majorTicks);

Then dots can be drawn at coords intersections. Please see the article about CustomRenderbaleSeries API for more details about drawing.

Also, you have to turn off default Gridlines. This can be done via DrawMajorGridLines, DrawMinorGridLines properties on Axes.

Please let me know if this helps,

  • 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