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

0
0

I’m using few synchronized charts to display different data series, I would like to have an ItemsControl which shows points info from all the charts, is it possible?

  • You must to post comments
0
0

Hi there,

I just tried to implement desired behavior in this way:

        <Grid Grid.Row="1">

            <Grid.Resources>
                <CompositeCollection x:Key="SeriesInfos">
                    <CollectionContainer Collection="{Binding ChartModifier[RolloverModifier].RolloverData.SeriesInfo, Source={x:Reference chart0}}" />
                    <CollectionContainer Collection="{Binding ChartModifier[RolloverModifier].RolloverData.SeriesInfo, Source={x:Reference chart1}}" />
..........
                </CompositeCollection>
            </Grid.Resources>

            <ItemsControl ItemsSource="{StaticResource SeriesInfos}"
                      ItemTemplate="{StaticResource ChartDataTemplate}" />
            
        </Grid>

It seems to be working well, but usage of this approach assumes that you have permanent amount of charts.
Please, let us know if this is suitable solution for you.

Best regards,
Yuriy

  • sarat12
    Thank you, yes my problem is I'm creating those discrete charts dynamicaly every time when user makes a decision on which params to display, but I've got the idea. Thanks again.
  • Yuriy
    Hi again,I noticed on the screenshot that you use Rollover synchronized across the charts. Please, be aware that Rollover requires from all series to have the same X values, in another case it will be placed in different places and looks not synchronized. Am I right, this is your case?FYI, we are going to improve this behavior in future, probably in 2.0v.Best regards, Yuriy
  • sarat12
    Sure, you are right. But I think it's normal behavior, looks like it snaps to closest points, which is acceptible in my case. Any way setting rollover's UseInterpolation property to true solves the problem, but in that case displayed values are pretty abstract.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.