Pre loader

Moving legend outside sci-chart plots

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

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?

  • You must to post comments
0
0

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

  • Samir Shah
    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 to post comments
0
0

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.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies