Does anyone have recommendations on styling the series line on a 2D line chart ? Widening the line doesn't seem to give me the desired result and I'm not sure exactly how to obtain the look I want.
When changing the thickness, the fact that the line is drawn as a series of line segments becomes very obvious when no markers are used on the series (rectangles make for a choppy look) . Adding a marker helps a bit but I still (1) I can't obtain a smooth line - MarkerSize is a scale factor on the default size so matching it to the width of the line is quite tricky (2) I can't produce a stroke different than the fill (for some reason the stroke can be different on the marker but on the line it doesn't show any different than the fill).
Any suggestions would be greatly appreciated.
Line I'm trying to draw:
Line with black stroke and red fill without marker:
With marker:
Unfortunately, currently it is not possible to draw this. Our line chart draws lines, which means that there is just a stroke without fill.
About the smooth line you can try using:
<igChart:XamChart>
<igChart:XamChart.Resources>
<Style TargetType="{x:Type Line}">
<Setter Property="StrokeEndLineCap" Value="Round" />
<Setter Property="StrokeStartLineCap" Value="Round" />
</Style>
</igChart:XamChart.Resources>
<igChart:XamChart.Series>
…
Begin a WPF newbie, how can I do this (Set the StrokeEndLineCap and StrokeStartLineCap) through code-behind in VB?
Thanks,
Dim lineStyle As New Style(GetType(Line)) lineStyle.Setters.Add(New Setter(Line.StrokeStartLineCapProperty, PenLineCap.Round)) lineStyle.Setters.Add(New Setter(Line.StrokeEndLineCapProperty, PenLineCap.Round)) Me.theChart.Resources.Add(GetType(Line), lineStyle)