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’ve got several line chart series in my ChartSurface and it’s possible to collapse and show them dynamically. If I collapse all series and only one series visible I would like to see that one in the OverView chart. But I cannot find a way to get it done. DataSeriesIndex always get the first series in the parentSurface regardless of it’s visibility. Is there any way to show the first visible Series in the Overview chart?

<chart:SciChartOverview ParentSurface=".." DataSeriesIndex=”1″ SelectedRange=”{Binding ElementName=.., Path=XAxis.VisibleRange, Mode=TwoWay}”>

Best Regards,
Charith

  • You must to post comments
0
0

Hi Charith,

You could try to bind it to SciChartSurface.RenderableSeries and use appropriate converter which would return the index of first visible series. Something like that:

<chart:SciChartOverview DataSeriesIndex=”{Binding ParentSurface.RenderableSeries, RelativeSource={RelativeSource Self}, Converter={StaticResource GetIndexOfVisibleSeriesConverter}″>

Does this make sense for you?

Best regards,
Yuriy

  • Charith Jayasundara
    Hi Yuriy,Yes, that makes sense.Thanks, Charith
  • Charith Jayasundara
    Hi,I just noticed that DataSeriesIndex property is not available with SciChart V2. I've tried below way to check whether OverView chart respect to RenderableSeries number that is assiged to DataSeries propery. But seems it shows the same chart regardless of the given series number (I've given series id 9 below). Is that supposed to worked?
    <visuals:SciChartOverview Grid.Row="5" Height="50" ParentSurface="{Binding ElementName=ChartC}" DataSeries="{Binding ElementName=ChartC, Path=RenderableSeries[9].DataSeries}" SelectedRange="{Binding ElementName=ChartC, Path=XAxis.VisibleRange, Mode=TwoWay}">
    
    Please let me know the recommended way to implement my original issue with new properties.Thanks & Regards, Charith
  • You must to post comments
0
0

Hi,

The way in which you do it is right one. Binding order can cause the issue. Try setting ParentSurface binding after DataSeries binding, it may help.

We checked this behavior and it seems to be OK in our internal build. We are going to release it soon(till the weekend).

Regards,
Yuriy

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.