Is there a way in Sci-Chart to not have the legend inside the chart(plot) but rather have the legend outside as to not to interfere with the plots/charts?
- Samir Shah asked 9 years ago
- You must login to post comments
Yes, you can do pretty much anything with the legend.
Please see WPF Chart Legend Documentation
Alternatively – Binding LegendModifier.LegendData to SciChartLegend
You can alternatively bind LegendModifier.LegendData to a SciChartLegend and place anywhere in your application. You can also bind to an LegendModifier.LegendData to an ItemsControl.ItemsSource and template it as you wish.
Let me know if this helps,
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
- Hi Andrew, Looking at the WPF Chart documentation I see you can see the following: What I want is the LegendPlacement to be outside. First, should it be set LegendPlacement=”Outside”. Second, in my copy of Sci-Chart I do not have this property? What can I do instead? Thank you.
- You must login to post comments
Hi Andrew,
Looking at the WPF Chart documentation I see you can see the following:
<s:ModifierGroup>
<s:LegendModifier ShowLegend="True" Orientation="Horizontal" Margin="10"
LegendPlacement="Inside" GetLegendDataFor="AllSeries"
ShowVisibilityCheckboxes="True"/>
</s:ModifierGroup>
What I want is the LegendPlacement to be outside. First, should it be set LegendPlacement=”Outside”. Second, in my copy of Sci-Chart I do not have this property? What can I do instead? Thank you.
- Samir Shah answered 9 years ago
- last edited 9 years ago
- Do what I mentioned “bind LegendModifier.LegendData to a SciChartLegend and place anywhere in your application”. Scroll down to the part in https://www.scichart.com/documentation/v4.x/LegendModifier.html “Alternatively – Binding LegendModifier.LegendData to SciChartLegend”. PS: Please mention what version of scichart you are using when requesting support.
- You must login to post comments
Please login first to submit.