Custom ColorPalette

Hello, 

I am implementing Xamarin SfChart and try to implement the Doghnout chart. It shows some nice example (first printscreen): but at https://help.syncfusion.com/xamarin/charts/appearance there is a line stating: 

Predefined Palettes

Currently, Chart supports only Metro palette and it is the default palette for SfChart. The following screenshot shows the default appearance of multiple series.

So I am curious: Is it possible to implement another color theme in Xamarin.Forms or is it not (yet) possible?



7 Replies 1 reply marked as answer

SJ Suyamburaja Jayakumar Syncfusion Team June 29, 2020 09:02 AM UTC

 
Greetings from Syncfusion.  
 
We would like to let you know that your requirement has be achieved by using the colors from CustomBrushes property if the ColorModel.Palette property of series is set to Custom. 
 
 
More information please refer the below UG link, 
 
Please refer the below link will be the different types of color palette available in SfChart https://help.syncfusion.com/cr/xamarin/Syncfusion.SfChart.XForms.ChartColorPalette.html 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Suyamburaja J. 


Marked as answer

DI Dirk June 29, 2020 05:56 PM UTC

Hello Suyamburaja,

thanks a lot for your (quick!) response, it really helped me out. I have one more question: Can I move the chart more to the top when I am using only half of the donought (angles 180 / 360)? It now is in the middle of the screen, I would like to move it more to the top/legend so I do not just have all the white space (see red marked area):



Regards,

Dirk



SJ Suyamburaja Jayakumar Syncfusion Team June 30, 2020 12:10 PM UTC

  
We would like to let you know that, doughnut series will leave some space in the top and bottom position when using semicircular doughnut chart and that is a behavior of chart. We are calculating square bounds from the available chart size and draw the doughnut circle from the center position of calculated bounds.  
  
Please let us know if you need any further assistance on this. 
 
Regards, 
Suyamburaja J. 



DI Dirk June 30, 2020 05:47 PM UTC

Just wondering why this is the case?
One reason I want to use only halve of the donought is to save space. But now there seems no benefit by using half of the donought. 


DD Devakumar Dhanapoosanam Syncfusion Team July 2, 2020 05:41 PM UTC

Hi Dirk, 
 
Thanks for your update. 
 
As we said earlier this is the default behavior. The desired size of the pie series square bounds is calculated based on the minimum value from the available chart size Height and Width. 
 
We would like to suggest setting the same value for HeightRequest and WidthRequest for the chart and change the doughnut radius size to fill the chart area using the CircularCoefficient property value as 1 to overcome this issue. However, it will show some space in top and bottom position when using semicircular doughnut chart. Please refer the below UG link for more details.  
 
 
Regards, 
Devakumar D 



DI Dirk July 3, 2020 02:56 PM UTC

Allright, thanks a lot for your answer!


SS Sridevi Sivakumar Syncfusion Team July 6, 2020 07:48 AM UTC

Hi Dirk, 
 
Thanks for your update.  
 
 Please let us know if you need any further assistance 
 
Regards, 
Sridevi S. 


Loader.
Up arrow icon