Category / Section
How to inverse the chart axis
1 min read
Essential chart for Xamarin.Forms provides support to invert the chart axis. By setting the IsInversed property to true, you can inverse the axis.
The following code illustrates how to invert the primary axis.
XAML
<chart:SfChart.PrimaryAxis> <chart:NumericalAxis IsInversed="true" /> </chart:SfChart.PrimaryAxis>
C#
NumericalAxis axis = new NumericalAxis (); axis.IsInversed = true; chart.PrimaryAxis = axis;