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
close icon

Is there any styles for Line Series like Solid, Dotted, LongDash, Dash Dash ?

Is there any styles for Line Series like Solid, Dotted, LongDash, Dash Dash ?

5 Replies

ME Manivannan Elangovan Syncfusion Team August 25, 2015 01:23 PM UTC

Hi Dorababu,


Thanks for using Syncfusion products.


We are able to achieve your requirement by using LineWidth and Dashes properties in SFLineSeries. The below code snippet shows how to define the styles for Line Series.


CodeSnippet:


SFLineSeries series = new SFLineSeries ();

// For Solid Style

series.LineWidth = 6;

//For Dotted and LongDash Style

NSObject[] dashes = new NSObject[2];

dashes [0] = (NSNumber)2;

dashes [1] = (NSNumber)2;

series.Dashes = NSArray.FromObjects(dashes);


We have prepared a sample based on requirement. You can download the sample from the following location.


Sample: LineSeries


Please let us know, if you need any further assistance on this.


Regards,
Manivannan.E



DO Dorababu August 27, 2015 06:28 AM UTC

Awesome, Thank you.


ME Manivannan Elangovan Syncfusion Team August 28, 2015 12:39 PM UTC

Hi Dorababu,


Thanks for the update.


Please let us know if you have any query.


Regards,
Manivannan.E



DO Dorababu August 28, 2015 01:04 PM UTC

Hi , Today I have asked one more question regarding custom labels in X - Axis, Can you please look at that.


ME Manivannan Elangovan Syncfusion Team August 31, 2015 12:04 PM UTC

Hi Dorababu,

We have already updated the forum. You can refer that forum.

Please let us know, if you have any query.

Regards,
Manivannan.E


Loader.
Live Chat Icon For mobile
Up arrow icon