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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Doghnut Chart with different color after 100% of the chart

Thread ID:





145312 Jun 17,2019 11:58 AM UTC Jul 8,2019 01:19 PM UTC Xamarin.Forms 3
Tags: SfChart
Codrina Merigo
Asked On June 17, 2019 11:58 AM UTC


My requirement is to draw the fact that a percentage has been overlapped and drow it using a doughnut chart. For example, given the circle as 100%, I have to color differently the fact that it went 105% by coloring the 5% in a different color. Something like in the image below. 
Is that possible using the Doghnut Chart ? 

Thank you

Rachel A [Syncfusion]
Replied On June 19, 2019 01:52 PM UTC

Hi Codrina, 
Greetings from Syncfusion. We can achieve your requirement by changing the color in TrackColor property when value exceed 100 as shown in the below code example. 
          if (value > 100) 
                TrackColor = Color.BlueViolet; 
                value = value % 100; 
                TrackColor = Color.Gray; 
<chart:DoughnutSeries IsStackedDoughnut="True" TrackColor="{Binding TrackColor}" CapStyle="BothCurve" MaximumValue="100" Spacing="0.5" Color="Black" ItemsSource="{Binding DoughnuSeriesData}" XBindingPath="Percentage" YBindingPath="Value"> 
. . . 
Refer the below link to know more about doughnut configuration.  
Also, we have prepared sample you can download from below link. 

Codrina Merigo
Replied On July 8, 2019 01:14 PM UTC

thank you very much!

works very well

Rachel A [Syncfusion]
Replied On July 8, 2019 01:19 PM UTC

Hi Codrina, 
Thanks for your valuable feedback. 
Please revert us if you have any other queries. 


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