|
| 1 | +{% from "components/chart/_macro.njk" import onsChart %} |
| 2 | + |
| 3 | +{{ |
| 4 | + onsChart({ |
| 5 | + "chartType": "line", |
| 6 | + "description": "Line chart showing the annual rate of inflation for the Consumer Prices Index including owner occupiers’ housing costs (CPIH) and its components.", |
| 7 | + "theme": "primary", |
| 8 | + "title": "Sales volumes and values saw moderate growth in July 2024", |
| 9 | + "subtitle": "Figure 6: Upward contribution from housing and household services (including energy) saw the annual CPIH inflation rate rise", |
| 10 | + "id": "id", |
| 11 | + "headingLevel": 4, |
| 12 | + "caption": "Source: Monthly Business Survey, Retails Sales Inquiry from the Office for National Statistics", |
| 13 | + "download": { |
| 14 | + 'title': 'Download Figure 1 data', |
| 15 | + 'itemsList': [ |
| 16 | + { |
| 17 | + "text": "Excel spreadsheet (XLSX format, 18KB)", |
| 18 | + "url": "#" |
| 19 | + }, |
| 20 | + { |
| 21 | + "text": "Simple text file (CSV format, 25KB)", |
| 22 | + "url": "#" |
| 23 | + }, |
| 24 | + { |
| 25 | + |
| 26 | + "text": "Image (PNG format, 25KB)", |
| 27 | + "url": "#" |
| 28 | + } |
| 29 | + ]}, |
| 30 | + "footnotes": { |
| 31 | + "title": "Footnotes", |
| 32 | + "content": "<ol><li>Non-store retailing refers to retailers that do not have a store presence. While the majority is made up of online retailers, it also includes other retailers, such as stalls and markets.</li><li>More data are available in our Retail Sales Index datasets.</li></ol>" |
| 33 | + }, |
| 34 | + "legend": true, |
| 35 | + "xAxis": { |
| 36 | + "title": "Year", |
| 37 | + "type": "linear", |
| 38 | + "labelFormat": "{value:.2f}", |
| 39 | + "categories": [ |
| 40 | + 'Oct 2014', |
| 41 | + 'Nov 2014', |
| 42 | + 'Dec 2014', |
| 43 | + 'Jan 2015', |
| 44 | + 'Feb 2015', |
| 45 | + 'Mar 2015', |
| 46 | + 'Apr 2015', |
| 47 | + 'May 2015', |
| 48 | + 'Jun 2015', |
| 49 | + 'Jul 2015', |
| 50 | + 'Aug 2015', |
| 51 | + 'Sep 2015' |
| 52 | + ], |
| 53 | + "tickIntervalMobile": 3 |
| 54 | + }, |
| 55 | + "yAxis": { |
| 56 | + "title": "Sales", |
| 57 | + "labelFormat": "{value:,.2f}" |
| 58 | + }, |
| 59 | + "series": [ |
| 60 | + { |
| 61 | + "name": 'CPIH', |
| 62 | + "data": [ |
| 63 | + 1.3, 1.1, 0.7, 0.5, 0.4, 0.3, 0.3, 0.4, 0.3, 0.5, 0.4, 0.2 |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": 'Goods', |
| 68 | + "data": [ |
| 69 | + 0.3, 0.2, 1.0, 1.5, 2.0, 2.1, 1.9, 1.8, 2.0, 1.8, 2.0, 2.3 |
| 70 | + ] |
| 71 | + }, |
| 72 | + { |
| 73 | + "name": 'Services', |
| 74 | + "data": [ |
| 75 | + 2.2, 2.1, 2.1, 2.1, 2.2, 2.2, 2.0, 2.1, 2.1, 2.2, 2.2, 2.2 |
| 76 | + ] |
| 77 | + }, |
| 78 | + { |
| 79 | + "name": 'CPIH excl energy, food, alcohol & tobacco', |
| 80 | + "data": [ |
| 81 | + 1.5, 1.3, 1.4, 1.5, 1.4, 1.2, 1.1, 1.2, 1.0, 1.3, 1.2, 1.2 |
| 82 | + ] |
| 83 | + } |
| 84 | + ], |
| 85 | + "percentageHeightDesktop": 35, |
| 86 | + "percentageHeightMobile": 90, |
| 87 | + "fallbackImageUrl": '/img/small/line-chart-screenshot.png' |
| 88 | + }) |
| 89 | +}} |
0 commit comments