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
- kewur asked 8 years ago
- last edited 8 years ago
- You must login to post comments
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
- Andrew Burnett-Thompson answered 8 years ago
-
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.
-
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
-
Is there a way to draw the points outside of the rendersurface?
-
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 login to post comments
Please login first to submit.