SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


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.