Secondary y-axis in a WPF toolchain

I want to build two lines in a WPF toolkit diagram. ( http://wpf.codeplex.com/ ) Can I set the Y axis of one data series as a secondary y axis?

+4
source share
3 answers

Yes. The Axis type has a Location property, which you can use to indicate that it should be displayed on the left or right (either top or bottom).

+1
source

Just found an easy way to do this (but not easy to find!)

In the first series (ColumnSerie in my example) add this

 <DVC:ColumnSeries.DependentRangeAxis > <DVC:LinearAxis Location="Left" Orientation="Y" /> </DVC:ColumnSeries.DependentRangeAxis> 

In the second series (LineSeries) add this

 <DVC:LineSeries.DependentRangeAxis > <DVC:LinearAxis Location="Right" Orientation="Y" /> </DVC:LineSeries.DependentRangeAxis> 
+3
source

You can use the Location property to define the axis. For instance:

 <charts:LinearAxis Orientation="Y" Title="Some (Units)" Minimum="0" Maximum="40" Interval="5" Location="Right"/> 

It can also be "Left", "Top", "Bottom" or "Auto", Auto is the default, and if you define a second axis, it will by default draw one on the left and the second on the right (at least with the release in February 2010).

Hope this helps ...

+1
source

Source: https://habr.com/ru/post/1310194/


All Articles