Articles in this section

How to inverse the chart axis in .NET MAUI Chart (SfCartesianChart)?

The .NET MAUI Cartesian Chart allows you to inverse the chart axis. We can inverse both the primary and secondary axes by setting the chart axis IsInversed property to true.

The corresponding X-axis or Y-axis values are then reversed, and the adjacent Y-axis or X-axis is also moved to its opposite position.

The following code illustrates how to inverse the secondary axis, as shown in the sample image attached below.

[XAML]

<chart:SfCartesianChart.YAxes>
 <chart:NumericalAxis IsInversed="True"/>
</chart:SfCartesianChart.YAxes>

[C#]

NumericalAxis secondaryAxis = new NumericalAxis();
secondaryAxis.IsInversed = true;
charts.YAxes.Add(secondaryAxis);

 Output

Inversed chart axis in MAUI cartesian chart

 

Conclusion

I hope you enjoyed learning how to inverse the chart axis in .NET MAUI Chart (SfCartesianChart).

You can refer to our .NET MAUI Chart feature tour page to learn about its other groundbreaking feature representations. Explore our .NET MAUI Chart documentation to understand how to present and manipulate data. 

For current customers, check out our .NET MAUI from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Chart and other .NET MAUI components.

Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied