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.
Unfortunately, activation email could not send to your email. Please try again.

how to use DashPattern?

Thread ID:

Created:

Updated:

Platform:

Replies:

105707 Nov 14,2012 04:13 PM Nov 21,2012 05:30 AM ASP.NET MVC (Classic) 1
loading
Tags: Chart
Sam Ghanekar
Asked On November 14, 2012 04:13 PM

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

Vijayabharathi K [Syncfusion]
Replied On November 21, 2012 05:30 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;