Pre loader

Muti-Pane Charts MVVM Legend Issue

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


Hi All,
I am having an issue with legend as legend box is displays on chart and its also display series name on it but colors are not coming in legend only series name is displayed.
I also attached a IMAGE showing the above issue.

  • You must to post comments

Hi there,

I think that this could be caused by setting LegendModifier.ShowSeriesMarkers = false.

If you’re creating LegendModifier by your own I would suggest to ensure that you have ShowSeriesMarkers = true.

If you’re using SciStockChart (extension of SciChartSurface which provides default set of modifiers) then you could set this property via SciStockChart.LegendStyle:

    <Style TargetType="s:LegendModifier" x:Key="legendStyle">
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Orientation" Value="Horizontal"/>
        <Setter Property="ShowSeriesMarkers" Value="True"/>
        <Setter Property="ShowVisibilityCheckboxes" Value="False"/>

  <s:SciStockChart ShowLegend="True" LegendStyle="{StaticResource legendStyle}" ...>

Hope it helps!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.