BubbleDataPoint class

Represents a bubble data point with size information.

Extends ChartDataPoint with an additional size property for bubble charts. The size represents the third dimension of data visualization, allowing you to encode three variables (x, y, size) in a single chart.

Example

const BubbleDataPoint(
  x: 10,
  y: 20,
  size: 50,
  label: 'Product A',
)

See also:

Inheritance

Constructors

BubbleDataPoint({required double x, required double y, required double size, String? label, bool showValue = true})
Creates a bubble data point.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
label String?
Optional label for the data point (e.g., "Jan", "Q1").
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showValue bool
Whether to show the value for this data point.
finalinherited
size double
The size of the bubble (third dimension).
final
x double
The x-coordinate (horizontal position) of the data point.
finalinherited
y double
The y-coordinate (vertical value) of the data point.
finalinherited

Methods

copyWith({double? x, double? y, double? size, String? label, bool? showValue}) BubbleDataPoint
Creates a copy of this bubble data point with the given fields replaced.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override