Overview
Bubble charts are scatter plots where each data point is represented by a bubble. The position on the X and Y axes represents two dimensions of data, while the bubble size (radius) represents a third dimension. This makes bubble charts ideal for visualizing relationships between three variables simultaneously. Use cases:- Showing relationships between three variables
- Comparing data across multiple dimensions
- Portfolio analysis and risk assessment
- Population studies and demographics
- Scientific data visualization
Series Class
TBubbleSeries - The primary class for creating bubble chartsKey Properties
| Property | Type | Description |
|---|---|---|
Pointer | TSeriesPointer | Configure bubble appearance and style |
Pointer.Style | TSeriesPointerStyle | Bubble shape: psCircle, psRectangle, etc. |
Pointer.HorizSize | Integer | Base horizontal size |
Pointer.VertSize | Integer | Base vertical size |
Marks | TSeriesMarks | Configure value labels |
XValues | TChartValueList | X-axis values |
YValues | TChartValueList | Y-axis values |
RadiusValues | TChartValueList | Bubble radius values |
Transparency | Integer | Bubble transparency (0-100) |
Code Examples
Basic Bubble Chart
From VCL/TeeNew/SeriesType_Bubble.pas:78:Bubble Chart with Custom Styles
From VCL/TeeNew/SeriesType_Bubble.pas:54:Adding Individual Bubbles
Bubble Chart with Transparency
From VCL/TeeNew/Bubble_Transparency.pas (example pattern):Bubble Chart with Gradient Fill
From VCL/TeeNew/Bubble_Gradient.pas (example pattern):3D Bubble Chart
From VCL/TeeNew/Series_Bubble3D.pas (example pattern):Customization Options
Bubble Appearance
Color by Value
Custom Marks
Zoom and Pan
From VCL/TeeNew/SeriesType_Bubble.pas:63:Advanced Features
Dynamic Bubble Sizing
Click Detection
Multiple Bubble Series
Animated Bubbles
Axis Configuration
Best Practices
- Limit number of bubbles - Too many bubbles create clutter (consider sampling)
- Use transparency - Helps see overlapping bubbles
- Provide legend - Explain what size represents
- Scale appropriately - Bubble size should be meaningful and visible
- Consider axes scales - Equal scales prevent distortion
Related Chart Types
- Point/Scatter Charts - Similar but without size variation
- 3D Point Charts - Add Z-axis dimension
- Area Charts - Show filled regions instead of points
- Line Charts - Connect related data points
