2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
Essential chart for Xamarin.Forms supports positioning the chart axis on its default position or to the other side of the chart. To change the axis position, enable the OpposedPosition property of the ChartAxis. The following code example illustrates this.
XAML <chart:SfChart> … <chart:SfChart.PrimaryAxis> <chart:CategoryAxis OpposedPosition="True"> … </chart:CategoryAxis> </chart:SfChart.PrimaryAxis> <chart:SfChart.SecondaryAxis> <chart:NumericalAxis OpposedPosition="True"> … </chart:NumericalAxis> </chart:SfChart.SecondaryAxis> … </chart:SfChart>
C# Chart.PrimaryAxis = new CategoryAxis { //Displays the primary X Axis in opposed position. OpposedPosition = true, … }; Chart.SecondaryAxis = new NumericalAxis { //Displays the primary Y Axis in opposed position. OpposedPosition = true, … };
Output:Figure 1: Opposite position of the chart axis. |
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.