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.
Inherited Members
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 |
---|
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 |
---|
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 |
---|
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 |
---|
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 |
---|
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. |