<chart:ColumnSeries Label="Quantité théorique" ItemsSource="{Binding QuantitesTheorique}" Color="Blue" > <chart:ColumnSeries.YAxis> <chart:NumericalAxis Name="Quantite" OpposedPosition="True" ShowMajorGridLines="False" > <chart:NumericalAxis.Title> <chart:ChartAxisTitle Text="Quantité en g"/> </chart:NumericalAxis.Title> </chart:NumericalAxis> </chart:ColumnSeries.YAxis> </chart:ColumnSeries> <chart:ColumnSeries Label="Quantité distribuée" ItemsSource="{Binding QuantitesDistribuee}" Color="Yellow" > <chart:ColumnSeries.YAxis> <chart:NumericalAxis Name="Quantite" OpposedPosition="True" ShowMajorGridLines="False" /> </chart:ColumnSeries.YAxis> </chart:ColumnSeries> |
public void SwitchVisibleRight() { OppAxis.IsVisible = !OppAxis.IsVisible; OnPropertyChanged("OppAxis"); } public void SwitchRange() { OppAxis.Minimum = 0; if (OppAxis.Maximum == 5) OppAxis.Maximum = 10; else if (OppAxis.Maximum == 10) OppAxis.Maximum = 20; else OppAxis.Maximum = 5; OnPropertyChanged("OppAxis"); } |
The axis on the right does not change in any case, the same changes applied to the axis on the left are working properly.