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.
- vinay khandelwal asked 10 years ago
- last edited 10 years ago
- You must login 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"/>
</Style>
<s:SciStockChart ShowLegend="True" LegendStyle="{StaticResource legendStyle}" ...>
...
</s:SciStockChart>
Hope it helps!
- Yura Khariton answered 10 years ago
-
thanks a lot problem solved
- You must login to post comments
Please login first to submit.