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.

Pink is the new Gray

Thread ID:

Created:

Updated:

Platform:

Replies:

117464 Oct 25,2014 11:00 PM Oct 28,2014 02:45 AM Xamarin.Forms 3
loading
Tags: SfChart
Michael O'Connor
Asked On October 25, 2014 11:00 PM


I have an unusual problem with the charts for Xamarin.  I can assign any colors to custom brushes except gray or grayish colors.  Red looks like red, green looks like green, blue looks like blue, but gray, silver, RGB (200,200,200), etc. all come out pink.  I even tried tweaking the RGB just a tad to fool it, e.g. RGB (200,200,202) - no dice, still pink.  Unfortunately gray is sort of an important color for my theme.

Karthikeyan V [Syncfusion]
Replied On October 27, 2014 06:55 AM

Hi Michael,

Sorry about the inconvenience caused. 

We are able to reproduce the issue in iOS Xamarin.Forms. We will fix this issue in our next service pack release which will be available at the end of November, 2014.  However, you can resolve this issue by using following workaround,

Code snippet [C#]:

Color color = Color.Gray;
ColumnSeries series = newColumnSeries ();
series.Color = Device.OnPlatform (Color.FromRgba (color.R / 255, color.G, color.B / 255, color.A / 255), color, color);

We have prepared a sample based on this and you can find the sample in the following location.

Disclaimer: The date for the release is tentative and not a commitment on our parts.

Please let us know if you require further assistance on this.

Regards,

Karthikeyan V


Attachment: SimpleChartSample_b3719ad.zip

Michael O'Connor
Replied On October 27, 2014 05:47 PM

Thanks for providing the workaround, it works.

Karthikeyan V [Syncfusion]
Replied On October 28, 2014 02:45 AM

Hi Michael,


Thanks for the update.


Please let us know if you require further assistance on this.


Thanks,

Karthikeyan V


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.

;