hello.
I added an OverView and scrollbar below the main chart, referring to the CustomOverviewView example.
Graph and scroll functions work without problems.
I want to show the main chart annotations in the OverView.
How can I solve my problem?
have a good day!
- You must login to post comments
Hi there,
You can place anything in the SciChartOverview if you use this technique from the documentation.
How to: Create a Custom SciChartOverview with any Background
The SciChartOverview only supports a single series behind it, and does
not allow a custom background. You can however use the
SciChartScrollbar API to create a custom overview.<Grid Background="{Binding ElementName=MainChartSurface, Path=Background}"> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="100" /> </Grid.RowDefinitions> <s:SciChartSurface x:Name="MainChartSurface"> </s:SciChartSurface> <Grid Grid.Row="1" > <s:SciChartScrollbar Grid.Column="0" Axis="{Binding ElementName=MainChartSurface, Path=XAxis}" /> </Grid> </Grid>
Using this technique you can place anything behind a SciChartScrollbar
to create an overview with custom series. You can place annotations on the series as well.
Just be advised that you cannot have the same Annotation
instance on two SciChartSurface
s. This is because Annotations are UIElement
s and cannot have two parents.
If you want the same annotations on two charts they will need to be duplicated. This can be done with either SciChart’s MVVM Annotations API or with XAML or Code-behind annotations.
Best regards
Andrew
- Andrew Burnett-Thompson answered 9 months ago
- You must login to post comments
Please login first to submit.