Hi,
I'm working on a small WPF application using the chart to display a single bar serie. I couldn't find the right option on the YAxis element that could display a small space between the maximum value of the serie and the top margin of the chart area. Right now the highest bar is stucked to the top of the chart, i would like to display on the axis the closest greater interval.
Moreover, is there a way to display on the axis the exact maximum value ?
Regards,
Clément
YAxis Maximum value
Moderator: Queue Moderators
-
- Posts: 555
- Joined: Mon Mar 14, 2016 9:22 am
Re: YAxis Maximum value
Hi,
There is property for the gap left into top and bottom of Y axes. This is View fitting margin in pixels, which is used together with ZoomToFit(). For example,
Or you could simple set range in a way you like:
Not sure that you are asking this thing, but if you don't like automatic axis' label placement, you should use CustomTicks. Please corresponding examples in our Demo App.
All the best.
There is property for the gap left into top and bottom of Y axes. This is View fitting margin in pixels, which is used together with ZoomToFit(). For example,
Code: Select all
_chart.ViewXY.ZoomPanOptions.ViewFitYMarginPixels = 5;
_chart.ViewXY.ZoomToFit();
Code: Select all
Axis.SetRange(minValue, maxValue);
All the best.