Articles in this section
Category / Section

How to inverse the chart axis in WinUI Chart (SfCartesianChart)?

1 min read

The WinUI SfCartesianChart provides support to inverse the chart axis. We can inverse both the primary and secondary axes by setting the chart axis IsInversed property to true, and then the corresponding X-axis or Y-axis values will be reversed.

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);

 

Inversed axis in WinUI cartesain chart

Conclusion

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

You can refer to our WinUI Chart’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinUI Chart documentation to understand how to present and manipulate data. 

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

If you have any queries or require clarifications, please let us know in comments below. 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)
Please  to leave a comment
Access denied
Access denied