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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to use DashPattern?

Thread ID:





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

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 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.






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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon