menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BubbleSeries - API Reference

    Show / Hide Table of Contents

    Class BubbleSeries

    To render a bubble chart, create an instance of BubbleSeries class and add it to Series collection property and set the required properties.

    Inheritance
    System.Object
    ChartSeries
    CartesianSeries
    XyDataSeries
    BubbleSeries
    Inherited Members
    XyDataSeries.YBindingPathProperty
    XyDataSeries.YBindingPath
    CartesianSeries.XAxisProperty
    CartesianSeries.YAxisProperty
    CartesianSeries.IsTransposedProperty
    CartesianSeries.ShowTrackballInfoProperty
    CartesianSeries.TrackballLabelTemplateProperty
    CartesianSeries.TrendlinesProperty
    CartesianSeries.GetDataPoints(Rectangle)
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.OnBindingContextChanged()
    CartesianSeries.OnParentSet()
    CartesianSeries.XAxis
    CartesianSeries.Trendlines
    CartesianSeries.YAxis
    CartesianSeries.IsTransposed
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.TrackballLabelTemplate
    ChartSeries.StrokeWidthProperty
    ChartSeries.ListenPropertyChangeProperty
    ChartSeries.DataMarkerProperty
    ChartSeries.IsVisibleProperty
    ChartSeries.ItemsSourceProperty
    ChartSeries.ColorProperty
    ChartSeries.LegendIconProperty
    ChartSeries.ColorModelProperty
    ChartSeries.EnableDataPointSelectionProperty
    ChartSeries.XBindingPathProperty
    ChartSeries.LabelProperty
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.SelectedDataPointIndexProperty
    ChartSeries.SelectedDataPointColorProperty
    ChartSeries.AnimationDurationProperty
    ChartSeries.EnableTooltipProperty
    ChartSeries.EnableAnimationProperty
    ChartSeries.TooltipTemplateProperty
    ChartSeries.OpacityProperty
    ChartSeries.GetDataPointIndex(Single, Single)
    ChartSeries.SuspendNotification()
    ChartSeries.ResumeNotification()
    ChartSeries.Animate()
    ChartSeries.StrokeWidth
    ChartSeries.ListenPropertyChange
    ChartSeries.DataMarker
    ChartSeries.IsVisible
    ChartSeries.ItemsSource
    ChartSeries.XBindingPath
    ChartSeries.Color
    ChartSeries.Label
    ChartSeries.LegendIcon
    ChartSeries.IsVisibleOnLegend
    ChartSeries.ColorModel
    ChartSeries.EnableDataPointSelection
    ChartSeries.SelectedDataPointIndex
    ChartSeries.Opacity
    ChartSeries.SelectedDataPointColor
    ChartSeries.EnableTooltip
    ChartSeries.AnimationDuration
    ChartSeries.TooltipTemplate
    ChartSeries.EnableAnimation
    ChartSeries.IsSelected
    ChartSeries.DataMarkerLabelCreated
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class BubbleSeries : XyDataSeries, IThemeElement
    Remarks

    BubbleSeries requires ItemsSource, XBindingPath, YBindingPath and Size properties to be set to render the chart. This series also requires x-axis and y-axis to be explicitly set either using PrimaryAxis and
    SecondaryAxis or XAxis and YAxis.

    Examples
    SfChart chart = new SfChart();
    chart.PrimaryAxis = new CategoryAxis();
    chart.SecondaryAxis = new NumericalAxis();
    BubbleSeries bubbleSeries = new BubbleSeries();
    ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
    {
    new ChartDataPoint("2006",28,9),
    new ChartDataPoint("2007",68,15),
    new ChartDataPoint("2010",38,12)
    };
    bubbleSeries.ItemsSource = Data;
    chart.Series.Add(bubbleSeries);

    Constructors

    BubbleSeries()

    Declaration
    public BubbleSeries()

    Fields

    MaximumRadiusProperty

    Gets or sets the value that defines the maximum radius of the bubble series. This is a bindable property.

    Declaration
    public static readonly BindableProperty MaximumRadiusProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    MinimumRadiusProperty

    Gets or sets the value that defines the minimum radius of the bubble series. This is a bindable property.

    Declaration
    public static readonly BindableProperty MinimumRadiusProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ShowZeroSizeBubblesProperty

    Gets or sets the value indicates the whether enabled or disabled the zero size bubble segments. This is bindable property.

    Declaration
    public static readonly BindableProperty ShowZeroSizeBubblesProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    SizeProperty

    Gets or sets the Size binding path in items source. This is a bindable property.

    Declaration
    public static readonly BindableProperty SizeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    StrokeColorProperty

    Gets or sets the stroke color to customize the appearance of BubbleSeries. This is a bindable property.

    Declaration
    public static readonly BindableProperty StrokeColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    MaximumRadius

    Gets or sets the value that defines the maximum radius of the bubble series. This is a bindable property.

    Declaration
    public double MaximumRadius { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the float value.

    MinimumRadius

    Gets or sets the value that defines the minimum radius of the bubble series. This is a bindable property.

    Declaration
    public double MinimumRadius { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the float value.

    ShowZeroSizeBubbles

    Gets or sets the value indicates the whether enabled or disabled the zero size bubble segments. This is bindable property.

    Declaration
    public bool ShowZeroSizeBubbles { get; set; }
    Property Value
    Type Description
    System.Boolean

    This property takes the bool value.

    Remarks

    If the ShowZeroSizeBubbles value is set to true, bubble segment rendered with segment radius value as MinimumRadius value.

    Size

    Gets or sets the Size binding path in items source. This is a bindable property.

    Declaration
    public string Size { get; set; }
    Property Value
    Type Description
    System.String

    This property takes the System.String as its value.

    StrokeColor

    Gets or sets the stroke color to customize the appearance of BubbleSeries. This is a bindable property.

    Declaration
    public Color StrokeColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Xamarin.Forms.Color value.

    Methods

    GetChartDataPoints()

    Represents the method used to get the collection of ChartDataPoint which is used to render the bubble series.

    Declaration
    public override IList<ChartDataPoint> GetChartDataPoints()
    Returns
    Type Description
    System.Collections.Generic.IList<ChartDataPoint>

    Collection.

    Overrides
    XyDataSeries.GetChartDataPoints()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved