Skip to content

Commit a21229d

Browse files
Merge branch 'main' into feature/update-chart-series-to-accept-only-6-series
2 parents ceafc06 + ea33796 commit a21229d

8 files changed

Lines changed: 39 additions & 86 deletions
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

src/components/chart/example-line-chart-with-markers.njk

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@
3838
'Dec 2014',
3939
'Jan 2015',
4040
'Feb 2015',
41-
'Mar 2015',
42-
'Apr 2015',
43-
'May 2015',
44-
'Jun 2015',
45-
'Jul 2015'
41+
'Mar 2015'
4642
]
4743
},
4844
"yAxis": {
@@ -98,38 +94,6 @@
9894
],
9995
"marker": true,
10096
"connectNulls": true
101-
},
102-
{
103-
"name": 'Extra test series 3',
104-
"data": [
105-
5.5, 5.3, 5.4, 5.5, 5.4, 5.2, 5.1, 5.2, 5.0, 5.3
106-
],
107-
"marker": true,
108-
"connectNulls": true
109-
},
110-
{
111-
"name": 'Extra test series 4',
112-
"data": [
113-
-3.5, -3.3, -3.4, -3.5, -3.4, -3.2, -3.1, -3.2, -3.0, -3.3
114-
],
115-
"marker": true,
116-
"connectNulls": true
117-
},
118-
{
119-
"name": 'Extra test series 5',
120-
"data": [
121-
-4.5, -4.3, -4.4, -4.5, -4.4, -4.2, -4.1, -4.2, -4.0, -4.3
122-
],
123-
"marker": true,
124-
"connectNulls": true
125-
},
126-
{
127-
"name": 'Extra test series 6',
128-
"data": [
129-
-5.5, -5.3, -5.4, -5.5, -5.4, -5.2, -5.1, -5.2, -5.0, -5.3
130-
],
131-
"marker": true,
132-
"connectNulls": true
13397
}
13498
],
13599
"percentageHeightDesktop": 35,

src/components/chart/example-stacked-column-chart.njk

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,55 @@
22
{{
33
onsChart({
44
"chartType": "column",
5-
"description": "Volume sales, seasonally adjusted, Great Britain, January 2022 to January 2025",
5+
"description": "Monthly percentage change in retail sales volume by store type, Great Britain, January to June 2025",
66
"theme": "primary",
77
"title": "Food stores showed a strong rise on the month, while non-food stores fell",
8-
"subtitle": "Figure 6: Upward contribution from housing and household services (including energy) saw the annual CPIH inflation rate rise",
8+
"subtitle": "Figure 6: Upward contribution to monthly percentage change in total retail sales",
99
"id": "uuid",
1010
"useStackedLayout": true,
1111
"caption": "Source: Monthly Business Survey, Retail Sales Inquiry from the Office for National Statistics",
1212
"download": {
13-
'title': 'Download Figure 1 data',
14-
'itemsList': [
15-
{
16-
"text": "Excel spreadsheet (XLSX format, 18KB)",
17-
"url": "#"
18-
},
19-
{
20-
"text": "Simple text file (CSV format, 25KB)",
21-
"url": "#"
22-
},
23-
{
24-
"text": "Image (PNG format, 25KB)",
25-
"url": "#"
26-
}
13+
"title": "Download Figure 6 data",
14+
"itemsList": [
15+
{ "text": "Excel spreadsheet (XLSX format, 22KB)", "url": "#" },
16+
{ "text": "Simple text file (CSV format, 28KB)", "url": "#" },
17+
{ "text": "Image (PNG format, 32KB)", "url": "#" }
2718
]
2819
},
2920
"legend": true,
3021
"series": [
3122
{
32-
"data": [5, 3, 4, 6, 2, 2, 3, 7],
33-
"dataLabels": false,
34-
"name": "2022"
23+
"name": "Food stores",
24+
"data": [1.5, 0.8, 1.2, 0.9, 1.1, 1.4]
3525
},
3626
{
37-
"data": [2, 2, 3, 7, 3, 4, 4, 1],
38-
"dataLabels": false,
39-
"name": "2023"
27+
"name": "Non-food stores",
28+
"data": [0.5, -0.2, 0.6, 0.8, 0.3, 0.4]
4029
},
4130
{
42-
"data": [3, 4, 4, 1, 5, 3, 4, 6],
43-
"dataLabels": false,
44-
"name": "2024"
31+
"name": "Non-store retailing",
32+
"data": [0.2, 0.1, 0.3, 0.2, 0.4, 0.3]
33+
},
34+
{
35+
"name": "Automotive fuel",
36+
"data": [0.3, 0.2, -0.1, 0.4, 0.2, 0.5]
4537
}
4638
],
4739
"xAxis": {
4840
"categories": [
49-
"Food stores",
50-
"Non-food stores",
51-
"Non-store retailing ",
52-
"Automotive fuel",
53-
"Household goods stores",
54-
"Clothing stores",
55-
"Other stores",
56-
"All retailing"
41+
"Jan 2025",
42+
"Feb 2025",
43+
"Mar 2025",
44+
"Apr 2025",
45+
"May 2025",
46+
"Jun 2025"
5747
],
58-
"title": "Items",
59-
"type": "linear"
48+
"title": "Month"
6049
},
6150
"yAxis": {
62-
"title": "Percentage of GDP (%)"
51+
"title": "Monthly percentage change (%)"
6352
},
64-
"percentageHeightDesktop": 35,
53+
"percentageHeightDesktop": 40,
6554
"percentageHeightMobile": 90
6655
})
6756
}}

0 commit comments

Comments
 (0)