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?
- Smadar Tsdaka asked 7 years ago
- You must login to post comments
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
- Yuriy Zadereckiy answered 7 years ago
-
Thank you! It’s been very helpful
- You must login to post comments
Please login first to submit.