Skip to content

Commit 09f18f0

Browse files
authored
chore: format dev pages, fix JSON attributes (#4995)
1 parent aebd779 commit 09f18f0

64 files changed

Lines changed: 1247 additions & 1211 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎dev/charts/lumo/area.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</vaadin-chart-series>
3131
<vaadin-chart-series title="America" values="[18, 31, 54, 156, 339, 818, 1201]" unit="Millions">
3232
</vaadin-chart-series>
33-
<vaadin-chart-series title="Oceania" values="[2, 2, 2, 6, 13, 30, 46]" unit="Millions"> </vaadin-chart-series>
33+
<vaadin-chart-series title="Oceania" values="[2, 2, 2, 6, 13, 30, 46]" unit="Millions"></vaadin-chart-series>
3434
</vaadin-chart>
3535
</body>
3636
</html>

‎dev/charts/lumo/areaspline.html‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,21 @@
2727
"floating": true
2828
},
2929
"xAxis": {
30-
"plotBands": [{
31-
"from": 4.5,
32-
"to": 6.5
33-
}]
30+
"plotBands": [
31+
{
32+
"from": 4.5,
33+
"to": 6.5
34+
}
35+
]
3436
},
3537
"tooltip": {
3638
"shared": true,
3739
"valueSuffix": " units"
3840
}
3941
}'
4042
>
41-
<vaadin-chart-series title="John" values="[3, 4, 3, 5, 4, 10, 12]" unit="Fruit units"> </vaadin-chart-series>
42-
<vaadin-chart-series title="Jane" values="[1, 3, 4, 3, 3, 5, 4]" unit="Fruit units"> </vaadin-chart-series>
43+
<vaadin-chart-series title="John" values="[3, 4, 3, 5, 4, 10, 12]" unit="Fruit units"></vaadin-chart-series>
44+
<vaadin-chart-series title="Jane" values="[1, 3, 4, 3, 3, 5, 4]" unit="Fruit units"></vaadin-chart-series>
4345
</vaadin-chart>
4446
</body>
4547
</html>

‎dev/charts/lumo/bar.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
}
3838
}'
3939
>
40-
<vaadin-chart-series title="Year 1800" values="[107, 31, 635, 203, 2]"> </vaadin-chart-series>
41-
<vaadin-chart-series title="Year 1900" values="[133, 156, 947, 408, 6]"> </vaadin-chart-series>
42-
<vaadin-chart-series title="Year 2000" values="[814, 841, 3714, 727, 31]"> </vaadin-chart-series>
43-
<vaadin-chart-series title="Year 2016" values="[1216, 1001, 4436, 738, 40]"> </vaadin-chart-series>
40+
<vaadin-chart-series title="Year 1800" values="[107, 31, 635, 203, 2]"></vaadin-chart-series>
41+
<vaadin-chart-series title="Year 1900" values="[133, 156, 947, 408, 6]"></vaadin-chart-series>
42+
<vaadin-chart-series title="Year 2000" values="[814, 841, 3714, 727, 31]"></vaadin-chart-series>
43+
<vaadin-chart-series title="Year 2016" values="[1216, 1001, 4436, 738, 40]"></vaadin-chart-series>
4444
</vaadin-chart>
4545
</body>
4646
</html>

‎dev/charts/lumo/boxplot.html‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,43 +28,43 @@
2828
"title": {
2929
"text": "Observations"
3030
},
31-
"plotLines": [{
32-
"value": 932,
33-
"label": {
34-
"text": "Theoretical mean: 932",
35-
"align": "center"
31+
"plotLines": [
32+
{
33+
"value": 932,
34+
"label": {
35+
"text": "Theoretical mean: 932",
36+
"align": "center"
37+
}
3638
}
37-
}]
39+
]
3840
}
3941
}'
4042
>
4143
<vaadin-chart-series
4244
title="Observations"
4345
values="[
44-
[760, 801, 848, 895, 965],
45-
[733, 853, 939, 980, 1080],
46-
[714, 762, 817, 870, 918],
47-
[724, 802, 806, 871, 950],
48-
[834, 836, 864, 882, 910]
49-
]"
46+
[760, 801, 848, 895, 965],
47+
[733, 853, 939, 980, 1080],
48+
[714, 762, 817, 870, 918],
49+
[724, 802, 806, 871, 950],
50+
[834, 836, 864, 882, 910]
51+
]"
5052
additional-options='{
51-
"tooltip": {
52-
"headerFormat": "<em>Experiment No {point.key}</em><br/>"
53-
}
54-
}'
55-
>
56-
</vaadin-chart-series>
53+
"tooltip": {
54+
"headerFormat": "<em>Experiment No {point.key}</em><br/>"
55+
}
56+
}'
57+
></vaadin-chart-series>
5758
<vaadin-chart-series
5859
type="scatter"
5960
title="Outlier"
6061
values="[[0, 644], [4, 718], [4, 951], [4, 969]]"
6162
additional-options='{
62-
"tooltip": {
63-
"pointFormat": "Observation: {point.y}"
64-
}
65-
}'
66-
>
67-
</vaadin-chart-series>
63+
"tooltip": {
64+
"pointFormat": "Observation: {point.y}"
65+
}
66+
}'
67+
></vaadin-chart-series>
6868
</vaadin-chart>
6969
</body>
7070
</html>

‎dev/charts/lumo/bubble.html‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@
1616
<vaadin-chart-series
1717
title="All bubbles shown"
1818
values="[[9, 81, 13], [98, 5, 39], [51, 50, 23], [41, 22, -36], [58, 24, -30], [78, 37, -16], [55, 56, 3], [18, 45, 20], [42, 44, -22], [3, 52, 9], [31, 18, 47], [79, 91, 13], [93, 23, -27], [44, 83, -28]]"
19-
additional-options='{"maxSize": 120, "minSize": 3}'
20-
>
21-
</vaadin-chart-series>
19+
additional-options='{ "maxSize": 120, "minSize": 3 }'
20+
></vaadin-chart-series>
2221
<vaadin-chart-series
2322
title="Negative bubbles hidden"
2423
values="[[13, 30, 10], [23, 20, -10], [23, 40, 10]]"
25-
additional-options='{"displayNegative": false}'
26-
>
27-
</vaadin-chart-series>
24+
additional-options='{ "displayNegative": false }'
25+
></vaadin-chart-series>
2826
</vaadin-chart>
2927
</body>
3028
</html>

‎dev/charts/lumo/bullet.html‎

Lines changed: 106 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,48 @@
1919
title="2017 YTD"
2020
style="height: 115px"
2121
categories='["<span class=\"hc-cat-title\">Revenue</span><br/>U.S. $ (1,000s)"]'
22-
additional-options='{"chart": {
23-
"inverted": true,
24-
"marginLeft": 135,
25-
"marginTop": 40
26-
},
27-
"yAxis": {
28-
"title": {
22+
additional-options='{
23+
"chart": {
24+
"inverted": true,
25+
"marginLeft": 135,
26+
"marginTop": 40
27+
},
28+
"yAxis": {
29+
"title": {
2930
"text": ""
31+
},
32+
"plotBands": [
33+
{
34+
"from": 0,
35+
"to": 150,
36+
"className": "band-0"
37+
},
38+
{
39+
"from": 150,
40+
"to": 225,
41+
"className": "band-1"
42+
},
43+
{
44+
"from": 225,
45+
"to": 9000000000,
46+
"className": "band-2"
47+
}
48+
]
3049
},
31-
"plotBands":[{
32-
"from":0,
33-
"to":150,
34-
"className": "band-0"
35-
},{
36-
"from":150,
37-
"to":225,
38-
"className": "band-1"
39-
},{
40-
"from":225,
41-
"to":9000000000,
42-
"className": "band-2"
43-
}]
44-
},
45-
"tooltip": {
46-
"pointFormat": "<b>{point.y}</b> (with target at {point.target})"
47-
}
48-
}'
50+
"tooltip": {
51+
"pointFormat": "<b>{point.y}</b> (with target at {point.target})"
52+
}
53+
}'
4954
no-legend
5055
>
5156
<vaadin-chart-series
52-
values='[{"y":275,"target":250}]'
57+
values='[{ "y": 275, "target": 250 }]'
5358
additional-options='{
54-
"pointPadding": 0.25,
55-
"targetOptions": {
59+
"pointPadding": 0.25,
60+
"targetOptions": {
5661
"width": "200%"
57-
}
58-
}'
62+
}
63+
}'
5964
></vaadin-chart-series>
6065
</vaadin-chart>
6166

@@ -64,45 +69,50 @@
6469
theme="steps"
6570
style="height: 85px"
6671
categories='["<span class=\"hc-cat-title\">Profit</span><br/>%"]'
67-
additional-options='{"chart": {
68-
"inverted": true,
69-
"marginLeft": 135
72+
additional-options='{
73+
"chart": {
74+
"inverted": true,
75+
"marginLeft": 135
76+
},
77+
"yAxis": {
78+
"title": {
79+
"text": ""
80+
},
81+
"plotBands": [
82+
{
83+
"from": 0,
84+
"to": 20,
85+
"className": "band-0"
7086
},
71-
"yAxis": {
72-
"title": {
73-
"text": ""
74-
},
75-
"plotBands": [{
76-
"from":0,
77-
"to":20,
78-
"className": "band-0"
79-
},{
80-
"from":20,
81-
"to":25,
82-
"className": "band-1"
83-
},{
84-
"from":25,
85-
"to":100,
86-
"className": "band-2"
87-
}],
88-
"labels": {
89-
"format": "{value}%"
90-
}
87+
{
88+
"from": 20,
89+
"to": 25,
90+
"className": "band-1"
9191
},
92-
"tooltip": {
93-
"pointFormat": "<b>{point.y}</b> (with target at {point.target})"
92+
{
93+
"from": 25,
94+
"to": 100,
95+
"className": "band-2"
9496
}
95-
}'
97+
],
98+
"labels": {
99+
"format": "{value}%"
100+
}
101+
},
102+
"tooltip": {
103+
"pointFormat": "<b>{point.y}</b> (with target at {point.target})"
104+
}
105+
}'
96106
no-legend
97107
>
98108
<vaadin-chart-series
99-
values='[{"y":22,"target":27}]'
109+
values='[{ "y": 22, "target": 27 }]'
100110
additional-options='{
101-
"pointPadding": 0.25,
102-
"targetOptions": {
103-
"width": "200%"
104-
}
105-
}'
111+
"pointPadding": 0.25,
112+
"targetOptions": {
113+
"width": "200%"
114+
}
115+
}'
106116
></vaadin-chart-series>
107117
</vaadin-chart>
108118

@@ -111,42 +121,47 @@
111121
theme="steps"
112122
style="height: 85px"
113123
categories='["<span class=\"hc-cat-title\">New Customers</span><br/>Count"]'
114-
additional-options='{"chart": {
115-
"inverted": true,
116-
"marginLeft": 135
124+
additional-options='{
125+
"chart": {
126+
"inverted": true,
127+
"marginLeft": 135
128+
},
129+
"yAxis": {
130+
"title": {
131+
"text": ""
132+
},
133+
"plotBands": [
134+
{
135+
"from": 0,
136+
"to": 1400,
137+
"className": "band-0"
117138
},
118-
"yAxis": {
119-
"title": {
120-
"text": ""
121-
},
122-
"plotBands": [{
123-
"from":0,
124-
"to":1400,
125-
"className": "band-0"
126-
},{
127-
"from":1400,
128-
"to":2000,
129-
"className": "band-1"
130-
},{
131-
"from":2000,
132-
"to":9e9,
133-
"className": "band-2"
134-
}]
139+
{
140+
"from": 1400,
141+
"to": 2000,
142+
"className": "band-1"
135143
},
136-
"tooltip": {
137-
"pointFormat": "<b>{point.y}</b> (with target at {point.target})"
144+
{
145+
"from": 2000,
146+
"to": 9e9,
147+
"className": "band-2"
138148
}
139-
}'
149+
]
150+
},
151+
"tooltip": {
152+
"pointFormat": "<b>{point.y}</b> (with target at {point.target})"
153+
}
154+
}'
140155
no-legend
141156
>
142157
<vaadin-chart-series
143-
values='[{"y":1650,"target":2100}]'
158+
values='[{ "y": 1650, "target": 2100 }]'
144159
additional-options='{
145-
"pointPadding": 0.25,
146-
"targetOptions": {
147-
"width": "200%"
148-
}
149-
}'
160+
"pointPadding": 0.25,
161+
"targetOptions": {
162+
"width": "200%"
163+
}
164+
}'
150165
></vaadin-chart-series>
151166
</vaadin-chart>
152167
</body>

0 commit comments

Comments
 (0)