Pre loader

Grid Line ranges

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 want to limit the range of the grid lines of a graph. For example on the screenshot, I don’t want any gridlines on the marked area.
Is there way to do what I want?

I’m using version 3.60.0.7618

Thank you

View post on imgur.com

Version
3.60.0.7618
  • You must to post comments
0
0

Yes there is,

You need to use our TickProvider API. We don’t have any documentation for it in v3.6, but we do have this article with worked example for v4.x.

Overidding the Axis.TickProvider

By default each Axis type has it’s own TickProvider type…

You can create your own, or inherit one of our TickProvider types to completely control the generation of axis ticks (label and gridline intervals).

Using this API you can have full control over the output of gridlines and labels.

Best regards,
Andrew

  • kewur
    Hi Andrew, Sorry I should have been more specific. I still want the gridlines to show up to the right of the Y Axis, but not to the left of it.
  • Andrew Burnett-Thompson
    Kind of difficult to do. You can define the ticks (interval of gridlines) exactly, you can also move the YAxis position and have it centrally, but to hide gridlines to the left of the YAxis would require a source-code change
  • kewur
    Is there a way to draw the points outside of the rendersurface?
  • Andrew Burnett-Thompson
    The RenderSurface bounds is inside the viewport (inside the standard placement of the axis), so technically, no. However, the Axis also has its own surface allowing you to draw ticks on it. Again none of these methods are exposed so you would need to modify the source to get to them. There is another way … potentially. AxisBase.ModifierAxisCanvas is a canvas control on the axis where you can place any UIElement. This allows you to place objects on the axis.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.