
How do I get a line, rather than a marker, to be used as the symbol in a legend? And a filled square to represent the area series and a marker to represent the points?
I have a chart which contains two line series, two area series, and three scatter series. The legend displays seven items, each with a marker as the symbol. I want the seven items, but each with the correct shape. I already figured out that charts:LineSeries Description will determine the text in the legend, and the Stroke property determines the color. For instance, one line series is defined as follows:
<charts:LineSeries Description="Direct Invis" ItemsSource="{Binding DirectInVisPolylineCoords}" XPath="Item1" YPath="Item2">
<charts:LineSeries.LineStyle>
<Style TargetType="Shape">
<Setter Property="Stroke" Value="#ff0000" />
<Setter Property="StrokeThickness" Value="1" />
</Style>
</charts:LineSeries.LineStyle>
</charts:LineSeries>
My guess is LegendItemTemplate, but I don't yet get how to set it up or use it. I'm fairly new to WPF and Actipro. If LegendItemTemplate is the way to go, then what should the DataTemplate consist of? Can it be in the same XAML file? How should I use it?
Thanks!