How to add a duplicate Y-axis in WPF SfChart?

The SfChart for Xamarin.Forms has a simple way to add a duplicate y-axis so that there is a Y-axis on both the left and the right side of the chart, as described here:  Adding duplicate axis in Syncfusion SfChart

Given that the IsVertical property is missing in the WPF version of NumericalAxis, how do we add a Y-axis to both the left and the right side of an SfChart? Thanks!


1 Reply

DD Devakumar Dhanapoosanam Syncfusion Team February 8, 2022 09:16 AM UTC

Hi Ryan Woodings, 
 
We have analyzed your query and achieved your requirement by using the multiple axes support of series with YAxis property as per the below code example.  
 
<chart:SfChart.SecondaryAxis> 
    <chart:NumericalAxis Minimum="0" Maximum="100"/> 
</chart:SfChart.SecondaryAxis> 
 
<chart:ColumnSeries ItemsSource="{Binding Data}"  
                      XBindingPath="XValue" YBindingPath="YValue"> 
    <chart:ColumnSeries.YAxis> 
        <chart:NumericalAxis Minimum="0" Maximum="100" OpposedPosition="True"/> 
    </chart:ColumnSeries.YAxis> 
</chart:ColumnSeries> 
 
 
Output: 
 
 
Please refer the below link for more details and let us know if you need any further assistance on this. 
 
 
Regards, 
Devakumar D 


Loader.
Up arrow icon