Pre loader

SciChartLegend inside the chart

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

0
0

I need a legend that don’t show particular serieses. I used the following example:

<sci_chart:SciChartSurface Name="sciChart" >

        <sci_chart:SciChartSurface.ChartModifier>
            <sci_chart:ModifierGroup>
                <sci_chart:LegendModifier x:Name="legendModifier" ShowLegend="False" Orientation="Vertical" Background="#FFA6A7AC"
                                      ShowVisibilityCheckboxes="False"  GetLegendDataFor="AllVisibleSeries"
                                      HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10" FontSize="10" />

                <local:SimpleLegendModifier x:Name="simpleLegendModifier" HorizontalAlignment="Right" Margin="10"/>

            </sci_chart:ModifierGroup>
        </sci_chart:SciChartSurface.ChartModifier>




    </sci_chart:SciChartSurface>

    <sci_chart:SciChartLegend Name="chartLegend"  FontSize="10"
                    Margin="10" HorizontalAlignment="Right"
                    ScrollViewer.VerticalScrollBarVisibility="Hidden" 
                    LegendData="{Binding ElementName=simpleLegendModifier, Path=LegendData}"/>

I want chartLegend to be inside the chart, but I can’t find how to do it…
The legend modifier have the placement property, but the SciChartLegend don’t. Is there a way to do it?

Version
V4
  • You must to post comments
0
0

Hi there,

You should set the LegendTemplate property on the LegendModifier instead. For more details, please see our documentation article about LegendModifier.

Hope this helps!

Best regards,
Yuriy

  • You must to post comments
Showing 1 result
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