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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.