ngx-charts
Search…
bubble-chart

Bubble Chart

Swimlane Bubble Chart - StackBlitz
StackBlitz

Inputs

Property
Type
Default Value
Description
view
number[]
the dimensions of the chart [width, height]. If left undefined, the chart will fit to the parent container size
results
object[]
the chart data
scheme
object
the color scheme of the chart
schemeType
string
'ordinal'
the color scale type. Can be either 'ordinal' or 'linear'
customColors
function or object
custom colors for the chart. Used to override a color for a specific value
animations
boolean
true
enable animations
legend
boolean
false
show or hide the legend
legendTitle
string
'Legend'
the legend title
legendPosition
string
'right'
the legend position ['right', 'below']
xAxis
boolean
false
show or hide the x axis
yAxis
boolean
false
show or hide the y axis
showGridLines
boolean
true
show or hide the grid lines
roundDomains
boolean
false
round domains for aligned gridlines
showXAxisLabel
boolean
false
show or hide the x axis label
showYAxisLabel
boolean
false
show or hide the y axis label
xAxisLabel
string
the x axis label text
yAxisLabel
string
the y axis label text
rotateXAxisTicks
boolean
true
enable automic rotation of x-axis ticks to prevent overlaps
xAxisTickFormatting
function
the x axis tick formatting

Outputs

Property
Description
select
click event
activate
element activation event (mouse enter)
deactivate
element deactivation event (mouse leave)

Data Format

Regular bubble charts

The data format is multi series:
1
[
2
{
3
"name": "Germany",
4
"series": [
5
{
6
"name": "2010",
7
"x": 40632,
8
"y": 80.3,
9
"r": 80.4
10
},
11
{
12
"name": "2000",
13
"x": 36953,
14
"y": 80.3,
15
"r": 78
16
},
17
{
18
"name": "1990",
19
"x": 31476,
20
"y": 75.4,
21
"r": 79
22
}
23
]
24
},
25
{
26
"name": "USA",
27
"series": [
28
{
29
"name": "2010",
30
"x": 49737,
31
"y": 78.8,
32
"r": 310
33
},
34
{
35
"name": "2000",
36
"x": 45986,
37
"y": 76.9,
38
"r": 283
39
},
40
{
41
"name": "1990",
42
"x": 3706,
43
"y": 75.4,
44
"r": 253
45
}
46
]
47
},
48
{
49
"name": "France",
50
"series": [
51
{
52
"name": "2010",
53
"x": 36745,
54
"y": 81.4,
55
"r": 63
56
},
57
{
58
"name": "2000",
59
"x": 34774,
60
"y": 79.1,
61
"r": 59.4
62
},
63
{
64
"name": "1990",
65
"x": 29476,
66
"y": 77.2,
67
"r": 56.9
68
}
69
]
70
},
71
{
72
"name": "United Kingdom",
73
"series": [
74
{
75
"name": "2010",
76
"x": 36240,
77
"y": 80.2,
78
"r": 62.7
79
},
80
{
81
"name": "2000",
82
"x": 32543,
83
"y": 77.8,
84
"r": 58.9
85
},
86
{
87
"name": "1990",
88
"x": 26424,
89
"y": 75.7,
90
"r": 57.1
91
}
92
]
93
}
94
]
Copied!