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

Hi,

I am looking for a way to bind the VisibleRange property, What I am doing is

<s:NumericAxis.VisibleRange>
     <s:DoubleRange Min="{Binding LowestValue, UpdateSourceTrigger=PropertyChanged}" Max="{Binding LowestValuePlusRange, UpdateSourceTrigger=PropertyChanged}"/>
 </s:NumericAxis.VisibleRange>

I get an error “A binding can not be set on the Min property of VisibleRange”.

Help me on how I should bind this please.

  • You must to post comments
0
0

Hi Kilosa,

You need to bind the whole range. For instance:

<!-- View -->
<s:NumericAxis VisibleRange="{Binding ViewmodelVisibleRange, Mode=TwoWay}"/>

and

// Viewmodel
public DoubleRange ViewmodelVisibleRange 
{ 
     get; 
     set; 
}     

Best regards,
Andrew

  • Kilosa Magali
    Thanks Andrew, I applied that to Y axis and it binds well except it zooms only in X axis. Will you please point me on how I should proceed that it zooms in both axis and reset to my new visible ranges?
  • Andrew
    I will need some more info from you to do this. Can you either post a full code sample and/or a video of what’s occurring?
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.