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


Overview

The Xamarin.Forms doughnut chart is a circular graphic, which is ideal for displaying proportional values in different categories. Doughnut charts support animation and interactive features such as tooltip and selection.

Beautiful Xamarin.Forms Doughnut Charts


Key features

Xamarin.Forms charts provides support to add view to the center of doughnut chart

Center view

Any view can be added to the center of the doughnut chart.

Xamarin.Forms charts shows the exploded doughnut segment

Explode on touch

Explode a single segment in the doughnut chart to differentiate it from others.

Xamarin.Forms charts group the smaller segments into a single segment

Grouping

Group the smaller segments in the doughnut chart to a single segment called “others”.

Xamarin.Forms charts show the customizable inner radius of doughnut chart

Custom inner radius

You can customize the inner radius of the chart to make it pleasing. Making inner radius to 0 will change the doughnut to pie chart. You can customize both the radius and inner radius of the doughnut.

Shows the customizable doughnut chart in Xamarin.Forms

Customization

Customize the look and feel of the doughnut using built-in APIs.

Shows the customization of the start and end angle in Xamarin.Forms doughnut chart

Start and End Angle

Customize the start and end angle of the chart to achieve the semi-pie.

Shows the smart labels of doughnut chart in Xamarin.Forms

Smart labels

Arranges data labels smartly to avoid overlapping when the data point values fall in close range.


Code example

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:ChartExample"
             xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms"
             x:Class="ChartExample.MainPage">

    <ContentPage.BindingContext>
        <local:ViewModel/>
    </ContentPage.BindingContext>

    <chart:SfChart>

        <chart:SfChart.Series>
            <chart:DoughnutSeries ItemsSource="{Binding Data}" XBindingPath="Month" YBindingPath="Target"/>
        </chart:SfChart.Series>

    </chart:SfChart>

</ContentPage>
public class Model
{
    public string Month { get; set; }

    public double Target { get; set; }

    public Model(string xValue, double yValue)
    {
        Month = xValue;
        Target = yValue;
    }
}

public class ViewModel
{
    public ObservableCollection<Model> Data { get; set; }

    public ViewModel()
    {
        Data = new ObservableCollection<Model>()
        {
            new Model("Jan", 50),
            new Model("Feb", 70),
            new Model("Mar", 65),
            new Model("Apr", 57),
            new Model("May", 48), 
        };
    }
}

Learning resources

Navigate to GitHub code used to configure the Xamarin.Forms doughnut chart

GitHub Code

The doughnut chart configuration code is available in GitHub.

Navigate to the options available in User Guide to customize the Xamarin.Forms doughnut chart

Doughnut Chart User Guide

Learn available options to customize the doughnut chart.

Navigate to the API references documentation of Xamarin.Forms doughnut chart

Doughnut Chart API Reference

Explore the doughnut chart APIs.


150+ XAMARIN UI CONTROLS

ALL CONTROLS
  • Xamarin.Forms
  • Xamarin.Android
  • Xamarin.iOS
The most downloaded control (based on the nuget.org download count).
Scroll up icon

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