Customer wanting min and max values set but also wants the steps to be different

A couple of things we would like changed on the graphs. For the sprint times graph, we would like the Y-axis to go up by increments of 0.25 seconds because the times for these sprints are not going to exceed 15 seconds. Secondly, for the jumps graph, we would like the y-axis to go up by 2 inch increments as the jumps are not going to be higher than 40inches ever.


How do I get the yaxis increments to be customized as well as the min and mix I figured by am using code behind for this. I see interval is that the correct thing to use in this case.

            performanceChart.PrimaryAxis = new NumericalAxis

            {

                // To set Y-Axis start value to 0

                Minimum = 0,

                // To set Y-Axis end value to 15 seconds

                Maximum = 15

            };


Also long the bottom it says months is their any way to show seconds for the label for the yaxis


2 Replies

DA David May 21, 2022 03:40 PM UTC

I tried that but it still did not change the info here it how do I change this one





YP Yuvaraj Palanisamy Syncfusion Team May 24, 2022 12:49 AM UTC

Hi David,


You can extend the range of yAxis when NumericalAxis with Minimum and Maximum property by using PlotOffset property of ChartAxis.


For more details, please refer the below link

https://help.syncfusion.com/xamarin/charts/axis#offset-the-rendering


You can show the seconds in the axis label for yAxis with the help of using DateTimeAxis as a Y-axis of SfChart. For more details, please refer the below link.

https://www.syncfusion.com/kb/8732/how-to-plot-date-time-values-in-vertical-axes


Please let us know if you have any further assistance.


Regards,

Yuvaraj.


Loader.
Up arrow icon