Class
RelativeBubbleSizeSelector

A class that encapsulates the logic for selecting a bubble size. This bubble-size-selector implementation works in relative mode to determine the bubble sizes. The bubble sizes are calculated in accordance to the bubble-size-function and with respect to the minimum value, maximum value, minimum size and maximum size. By default the max bubble size depends on the MaximumSizePercent property and the chart's size.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public class RelativeBubbleSizeSelector : ChartBubbleSizeSelector

Inheritance: objectChartBubbleSizeSelectorRelativeBubbleSizeSelector

Constructors

RelativeBubbleSizeSelector()

Initializes a new instance of the RelativeBubbleSizeSelector class.

Declaration

cs-api-definition
public RelativeBubbleSizeSelector()

Properties

BubbleSizeFunction

Gets or set the mathematical function used to determine the bubble size.

Declaration

cs-api-definition
public BubbleSizeFunction BubbleSizeFunction { get; set; }

Property Value

BubbleSizeFunction

MaximumSize

Gets or set the maximum bubble size.

Declaration

cs-api-definition
public double MaximumSize { get; set; }

Property Value

double

MaximumSizePercent

Gets or set a value that indicates that a bubble size cannot be larger than this percent of the chart's size.

Declaration

cs-api-definition
public double MaximumSizePercent { get; set; }

Property Value

double

MaximumValue

Gets or set the maximum value.

Declaration

cs-api-definition
public double MaximumValue { get; set; }

Property Value

double

MinimumSize

Gets or set the minimum bubble size.

Declaration

cs-api-definition
public double MinimumSize { get; set; }

Property Value

double

MinimumValue

Gets or set the minimum value.

Declaration

cs-api-definition
public double MinimumValue { get; set; }

Property Value

double

Methods

SelectBubbleSize(IBubbleDataPoint)

Calculates the bubble size for a given bubble data point. The bubble size is calculated with respect to the data point's BubbleSize and the MinimumValue, MaximumValue, MinimumSize, MaximumSize and BubbleSizeFunction properties.

Declaration

cs-api-definition
public override RadSize SelectBubbleSize(IBubbleDataPoint dataPoint)

Parameters

dataPoint

IBubbleDataPoint

Returns

RadSize

Overrides ChartBubbleSizeSelector.SelectBubbleSize(IBubbleDataPoint)