Bubble
Bubble charts are useful for visualizing different scientific relationships such as economic or social relations because the X-axis of the Bubble Charts is numerical and does not require items.
Bubble Charts are also suitable for displaying dozens to hundreds of values, which is convenient for visualizing size values that differ by several orders of magnitude. Because the size value is represented by a circle area, it is recommended to plot positive values.
Binding to Data
You can bind the Bubble chart series to an array through the data property in two formats:
-
Binding to arrays—Use arrays of
[X, Y, size]where the first element is the X coordinate, the second element is the Y coordinate, and the third element is the bubble size.tspublic data: [number, number, number][] = [[10, 20, 5], [15, 30, 10], [25, 15, 8]]; -
Binding to objects—Use an array of objects with custom properties.
tspublic data: Array<{ x: number; y: number; size: number }> = [ { x: 10, y: 20, size: 5 }, { x: 15, y: 30, size: 10 }, { x: 25, y: 15, size: 8 } ];When binding to objects, specify which properties contain the data through the following field mappings:
Property Data type Required Description xFieldstringYes* The property name that contains the X coordinate with numberordatevalues (*required when binding to objects).yFieldstringYes* The property name that contains the Y coordinate with numbervalues (*required when binding to objects).sizeFieldstringYes* The property name that contains the bubble size with numbervalues (*required when binding to objects).xAxisstringNo The name of the X axis to use. yAxisstringNo The name of the Y axis to use. colorFieldstringNo The property name that contains the color with stringvalues.
The following example demonstrates how to bind the Bubble chart series to data using object models.
Support and Learning Resources
- Scatter Homepage
- Getting Started with the Kendo UI for Angular Chart
- API Reference of the Charts
- Polar Charts
- Scatter Charts
- Getting Started with Kendo UI for Angular (Online Guide)
- Getting Started with Kendo UI for Angular (Video Tutorial)
- Video Courses
- Chart Forum
- Before You Start: All Things Angular (Telerik Blog Post)
- Knowledge Base