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

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