@ons/design-system 72.9.0 → 72.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/card/_macro.njk +15 -2
- package/components/card/example-card-set-with-headline-figures.njk +1 -4
- package/components/chart/_macro.njk +2 -1
- package/components/chart/_macro.spec.js +17 -121
- package/components/chart/area-chart.js +1 -0
- package/components/chart/bar-chart.js +2 -2
- package/components/chart/chart.js +1 -4
- package/components/table-of-contents/_macro.njk +1 -11
- package/components/table-of-contents/example-table-of-contents-related-links-with-button.njk +1 -2
- package/package.json +1 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/components/chart/example-bar-with-line-chart.njk +0 -64
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{% from "components/chart/_macro.njk" import onsChart %}
|
|
2
|
-
|
|
3
|
-
{{
|
|
4
|
-
onsChart({
|
|
5
|
-
"chartType": "bar",
|
|
6
|
-
"description": "Volume sales, seasonally adjusted, Great Britain, January 2022 to January 2025",
|
|
7
|
-
"theme": "primary",
|
|
8
|
-
"title": "Food stores showed a strong rise on the month, while non-food stores fell",
|
|
9
|
-
"subtitle": "Figure 6: Upward contribution from housing and household services (including energy) saw the annual CPIH inflation rate rise",
|
|
10
|
-
"id": "uuid",
|
|
11
|
-
"caption": "Source: Monthly Business Survey, Retail Sales Inquiry from the Office for National Statistics",
|
|
12
|
-
"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
|
-
}
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"legend": true,
|
|
30
|
-
"xAxis": {
|
|
31
|
-
"categories": ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"],
|
|
32
|
-
"type": "linear",
|
|
33
|
-
"title": "Categories"
|
|
34
|
-
},
|
|
35
|
-
"yAxis": {
|
|
36
|
-
"title": "Percent (%)"
|
|
37
|
-
},
|
|
38
|
-
"series": [
|
|
39
|
-
{
|
|
40
|
-
"data": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
41
|
-
"dataLabels": true,
|
|
42
|
-
"name": "Values"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"data": [
|
|
46
|
-
["One", 6],
|
|
47
|
-
["Two", 4],
|
|
48
|
-
["Three", 5],
|
|
49
|
-
["Four", 7],
|
|
50
|
-
["Five", 2],
|
|
51
|
-
["Six", 9],
|
|
52
|
-
["Seven", 3],
|
|
53
|
-
["Eight", 8],
|
|
54
|
-
["Nine", 2],
|
|
55
|
-
["Ten", 1]
|
|
56
|
-
],
|
|
57
|
-
"marker": true,
|
|
58
|
-
"dataLabels": false,
|
|
59
|
-
"name": "Another test data source",
|
|
60
|
-
"type": "line"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
})
|
|
64
|
-
}}
|