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

how to use DashPattern?

I have a stepline chart with x axis, with weekly data points for 10 years. The y axis is integers between 0 and 20.
 
I want to make one of the series become dashed, but since I have so many points I can't use the default dash types. How do you use DashPattern? I saw an example that sets it like:
 
            series1.Style.Border.DashStyle = DashStyle.Custom;
            series1.Style.Border.DashPattern = new float[] { 1.5f, 2.4f };
 
I don't follow how the array in the dashpattern is used to specify dash point spacing. Thanks

1 Reply

VK Vijayabharathi K Syncfusion Team November 21, 2012 10:30 AM UTC

Hi Sam,

 

Thanks for using Syncfusion products.

 

The dash pattern is applied between two points of line.  If one series having more number of points compare to another series means, the distance between the dashes will be varied. Please refer the attached sample and screenshot for dash pattern in chart.

 

Regards,

Vijayabharathi



Sample_679adc58.zip

Loader.
Live Chat Icon For mobile
Up arrow icon