SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

0
0

I am using the Vertically Stacked Axis example and I would like to set the (initial?) maximum of all the y-axis to the maximum of all the y-axis and the minimum to the minimum of all y-axis. In other words I want that everything use the same YAxis scales. Is there a way to to do this easily? or do I just have to set y min and max in the code for all charts/channels?

  • You must to post comments
0
0

Hi Michel,

Thanks for your question. Actually this should be very easy – if you use MVVM in your application then you need to create VisibleRange property in your view model and bind it to all axes with TwoWay binding:

<s:NumericAxis Name="Axis1" VisibleRange="{Binding AxisVisibleRange, Mode=TwoWay}"/>
<s:NumericAxis Name="Axis2" VisibleRange="{Binding AxisVisibleRange, Mode=TwoWay}"/>

or you could use ElementName binding and bind VisibleRange directly to one of axes:

  <s:NumericAxis Name="Axis1" />
  <s:NumericAxis Name="Axis2" VisibleRange="{Binding VisibleRange, ElementName=Axis1, Mode=TwoWay }"/>

Is this approach suitable for you?

Hope it helps!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.