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
Syncfusion Feedback


Overview

The Xamarin.Forms bubble chart visualizes data in 3 dimensions similar to scatter chart. The position and radius of a circle is determined based on X and Y and size values, respectively.

Beautiful Xamarin.Forms Bubble Chart


Key features

Xamarin.Forms chart show the radius customization in bubble chart

Bubble radius

Control the minimum and maximum radius of the overall bubble series.

Xamarin.Forms chart show the gradient support in bubble chart

Gradient

Apply gradient colors to visualize data in different colors, improving the readability and appearance of the chart.

Xamarin.Forms chart shows the color and stroke customization in bubble chart

UI customization

Customize the color and border of the bubble chart using built-in APIs to make it visually unique.


Code example

Easily get started with the Xamarin Bubble Chart using a few simple lines of C# code example as demonstrated below,

<?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.PrimaryAxis>
            <chart:CategoryAxis/>
        </chart:SfChart.PrimaryAxis>

        <chart:SfChart.SecondaryAxis>
            <chart:NumericalAxis/>
        </chart:SfChart.SecondaryAxis>

        <chart:BubbleSeries ItemsSource="{Binding Data}" XBindingPath="Month" YBindingPath="Target" Size="Size"/>

    </chart:SfChart>

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

    public double Size { get; set; }

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

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

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

Learning resources

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

GitHub Code

Explore the Xamarin.Forms Bubble Chart example from GitHub to learn how to render and configure charts.

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

Bubble Chart User Guide

Learn available options to customize the Xamarin.Forms bubble chart.

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

Bubble Chart API Reference

Explore the Xamarin.Forms bubble 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