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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dash line for axis

Thread ID:

Created:

Updated:

Platform:

Replies:

147182 Sep 4,2019 03:40 AM UTC Sep 4,2019 11:52 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Benjamin
Asked On September 4, 2019 03:40 AM UTC

I was following this link to style my axis line to be dashed. 

but my visual studio is showing the following error
A value of type 'ArrayExtension' cannot be added to a collection or dictionary of type 'Double[]'.


Muneesh Kumar G [Syncfusion]
Replied On September 4, 2019 11:52 AM UTC

Hi Benjamin, 
  
Greetings from Syncfusion.  
 
We can able to reproduce the reported problem issue at our end, but we would like to inform you that it is not related with SfChart, this compilation error will not affect the solution deployment. It will run while showing these error message time also.  
  
As by this forum, we can overcome this issue by declaring array in resources by below. 
  
    <ContentPage.Resources> 
        <x:Array x:Key="StrokeArray" Type="{x:Type x:Double}"> 
            <x:Double>5</x:Double> 
            <x:Double>6</x:Double> 
        </x:Array> 
    </ContentPage.Resources> 
. . . 
. . . 
<chart:NumericalAxis.AxisLineStyle> 
                        <chart:ChartLineStyle StrokeColor="Black" StrokeDashArray="{StaticResource StrokeArray}"> 
                        </chart:ChartLineStyle> 
                    </chart:NumericalAxis.AxisLineStyle> 
  
Please let us know if you have any other queries.  
  
Regards,    
Muneesh Kumar G 
 


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.

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

Live Chat Icon For mobile
Live Chat Icon