how to set line thickness on the LineChart?

Posted 4 years ago by Avatar Jonathan Helfman

Any way to set the line thickness to a single-pixel wide line?



Comments (3)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Jon,

You can set the stroke thickness via the LineSeries.LineStyle property like:

	<Style TargetType="Shape">
		<Setter Property="StrokeThickness" Value="5" />

Actipro Software Support
Posted 4 years ago by Jonathan Helfman


But how to accomplish the same in C#?


Posted 4 years ago by Jonathan Helfman
            Style style = new System.Windows.Style();
            style.Setters.Add(new Setter(Shape.StrokeThicknessProperty, 5.0));
            lineSeries.LineStyle = style;

 I get something like this. Seems to work. Thanks.

Information The latest build of this product (2018.1 build 0673) was released 29 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.