We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Set Line Width

Let me know how do following thing from Syncfusion?

From Excel:
Select the Line -> Format -> Shape Outline -> Weight -> More Lines then Format Data Series Windows will be opened.

Now Go to Line Style -> Width; this value i want to set it from Syncfusion to an arbitrary number. Please provide me solution how to do that.

currently i am doing this like:

IChartSerie serie = chart.Series[i]
serie.SerieFormat.LineProperties.LineWeight = ExcelChartLineWeight.Wide;

But i want more think lines. how can i do it?


3 Replies

AV Abirami Varadharajan Syncfusion Team August 17, 2016 07:13 AM UTC

Hi Krishna, 
Thank you for contacting Syncfusion support. 
You can able to set the line width for an series in number. Kindly refer below code snippet to achieve your requirement. 
Code Example: 
serie.SerieFormat.LineProperties.LineWeight = (ExcelChartLineWeight)10; 
We have shared the sample for your reference which can be downloaded from the following locations. 

KR krishna August 18, 2016 06:25 AM UTC

Hi Abirami,

Thanks for your response.
Now I am able to set the weight for line.


AV Abirami Varadharajan Syncfusion Team August 19, 2016 08:32 AM UTC

Hi Krishna, 
Thank you for updating us. 
We are glad that your requirement is fulfilled. Please let us know if you need further assistance. 

Live Chat Icon For mobile
Up arrow icon