Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
line style - series stroke color not applied? and line drawn as segments?
posted

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:

 

 

Parents
No Data
Reply
  • 17605
    Verified Answer
    posted

    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>

Children