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:
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)
Begin a WPF newbie, how can I do this (Set the StrokeEndLineCap and StrokeStartLineCap) through code-behind in VB?
Thanks,
Thanks Teodor, I'll likely do that as we're currently being asked to reproduce styles not possible with infragistics and some are starting to push to go with other vendors and I rather see us w/ infragistics..
Currently there are no such plans, but if you want to request this as an official feature then please visit this page: http://devcenter.infragistics.com/protected/requestfeature.aspx
Thanks Theodor, the line cap worked to smooth the line (see below). As for the stroke, do you know if it's in the plans to have it behave like the marker?
With cap set to round (smooths out the line just fine):
Stroke set to black and fill to red on marker.: