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

0
0

Hello ­čÖé

We have a chart setup like in the Custom Overview Control example. The RenderableSeries property of both charts is bound to the same ObservableCollection of IRenderableSeries. So if I change a property of the series like the thickness or point marker the change is visible in both charts accordingly.
Is there an easy way to accomplish that the series is drawn only with default thickness and without a point marker in the overview chart but with a point geometry and thickness in the main chart ?

Thank you.

Version
5.4
  • You must to post comments
0
0

Hi

I was facing the same task – and found this is not possible for obvious reason:
you are accessing the same object so all changes are reflected in both charts.

I had another problem in addition to this, all my data series have different axis ranges, which makes it even more tedious.

What you can do is binding the same data series to multiple IRenderableSeries and attach this collection to overview control.
At least this is my solution to this task…

Maybe somebody can suggest a better approach..

Cheers

Martin

  • You must to post comments
0
0

Martin is right, if you bind to the same collection of IRenderableSeries then you will have one RenderableSeries with two chart parents – which is invalid and won’t work. This is because Renderableseries are framework elements and must have a single parent.

On the other hand, if you use our SeriesBinding MVVM API then you can bind to the same collection of IRenderableSeriesViewModel as SciChart instantiates RenderableSeries for each viewmodel and binds to them. Thus saving you a lot of work (one declaration of series and data).

Let me know if this helps,

Best regards,
Andrew

  • Benjamin Br├╝ckner
    Thank you for your answer :-) If I use the SeriesBinding MVVM API I can bind to the same collection of IRenderableSeriesViewModel but this solves not the problem to display the thickness or point markers only in the main surface chart and not in the overview chart or do i miss here something ?
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.