Pre loader

MVVM Bindings for Legend

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I want to add some new lines to my chart dynamically and am using MVVM

I can see how to add my lines to the chart series, but am unsure how to add the various YAxis etc

From the code below, you can see I have passed a reference to my SciChartSurface to the Viewmodel at construction, and by using this I can dynamically add a Yaxis (R3), but now need to and YAxisDragModifier to the axis but am not sure how to do this? Is there any better documentation than the Class Library Documentation or better examples on MVVM that I have not found that shows dynamic adding of lines, axis etc, or could you help me get this going please?

Thanks


   NumericAxis na = new NumericAxis();
                        
  na.VisibleRange = new DoubleRange(0, 500);
  na.AxisAlignment = AxisAlignment.Right;
  na.Id = "R3";
  sciChart.YAxes.Add(na);
  YAxisDragModifier ydm = new YAxisDragModifier();
  ydm.YAxisId ="R3";

// How do I add this now???????
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies