diff --git a/README.md b/README.md index bac8633..543170e 100755 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ If you download the zip of the repo, you'll find a folder for every template. Th |Area - stacked - small multiple | [View](https://onsvisual.github.io/Simple-charts/all-templates/small-multiple-stacked-area) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/small-multiple-stacked-area) | ✗ | |Bar | [View](https://onsvisual.github.io/Simple-charts/all-templates/simple-bar-horizontal) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/simple-bar-horizontal) | ✗ | |Bar - small multiple | [View](https://onsvisual.github.io/Simple-charts/all-templates/small-multiple-bar-horizontal) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/small-multiple-bar-horizontal) | ✗ | +|Bar - small multiple with reference line | [View](https://onsvisual.github.io/Simple-charts/all-templates/small-multiple-bar-with-reference-line) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/small-multiple-bar-with-reference-line) | ✗ | |Bar - grouped | [View](https://onsvisual.github.io/Simple-charts/all-templates/clustered-bar-horizontal/) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/clustered-bar-horizontal) | ✗ | |Bar - grouped with confidence intervals - small multiple | [View](https://onsvisual.github.io/Simple-charts/all-templates/small-multiple-horizontal-clustered-bar-chart-confidence-intervals) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/small-multiple-horizontal-clustered-bar-chart-confidence-intervals) | ✗ | |Bar - grouped with confidence intervals - small multiple - linear x-axis | [View](https://onsvisual.github.io/Simple-charts/all-templates/small-multiple-horizontal-clustered-bar-confidence-intervals-linear-axis) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/small-multiple-horizontal-clustered-bar-confidence-intervals-linear-axis) | ✗ | @@ -36,6 +37,7 @@ If you download the zip of the repo, you'll find a folder for every template. Th |Column - stacked with negatives | [View](https://onsvisual.github.io/Simple-charts/all-templates/stacked-bar-vertical-with-negatives/) | [](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/stacked-bar-vertical-with-negatives) | ✗ | |Column and line | [View](https://onsvisual.github.io/Simple-charts/all-templates/bar-and-line/) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/bar-and-line) | ✗ | |Connected dot plot | [View](https://onsvisual.github.io/Simple-charts/all-templates/tie-fighter) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/tie-fighter) | ✗ | +|Connected dot plot/range plot, small multiple| [View](https://onsvisual.github.io/Simple-charts/all-templates/small-multiple-range-plot) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/tie-fighter) | ✗ | |Connected dot plot - buttons | [View](https://onsvisual.github.io/Simple-charts/all-templates/tiefighter-with-buttons) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/tiefighter-with-buttons) | ✗ | |Dot plot with jiggle | [View](https://onsvisual.github.io/Simple-charts/all-templates/dot-plot-jiggle) |[``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/dot-plot-jiggle) | ✗ | |Heatmap | [View](https://onsvisual.github.io/Simple-charts/all-templates/heatmap) | [``](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/heatmap) | ✗ | diff --git a/all-templates/small-multiple-bar-with-reference-lines/config.json b/all-templates/small-multiple-bar-with-reference-lines/config.json new file mode 100644 index 0000000..0bcd7da --- /dev/null +++ b/all-templates/small-multiple-bar-with-reference-lines/config.json @@ -0,0 +1,75 @@ +{ + "essential": { + "screenreadertext": "Set of small bar charts", + "graphic_data_url": "data.csv", + "dateFormat": "%d/%m/%Y", + + "colour_palette": { + "Exports": "#27A0CC", + "Imports": "#003C57" + }, + "categorySort": [ + "Total Services", + "Technical, trade-related and other business services", + "Professional and management consulting services", + "Explicitly charged and other financial services", + "Intellectual Property", + "Personal Travel" + ], + "sourceText": ["Office for National Statistics"], + "xAxisLabel": "£", + "yAxisLabel": "Regions and Countries", + "yAxisScale": "auto_min_max_total" + }, + "optional": { + "margin": { + "groupMargin": { + "top": 0, + "right": 0, + "bottom": 0, + "left": 40 + }, + "sm": { + "top": 30, + "right": 23, + "bottom": 50, + "left": 20 + }, + "md": { + "top": 30, + "right": 23, + "bottom": 50, + "left": 20 + }, + "lg": { + "top": 30, + "right": 20, + "bottom": 50, + "left": 20 + } + }, + "chart_every":{ + "sm": 1, + "md": 2, + "lg": 3 + }, + "aspectRatio": { + "sm": [16, 12], + "md": [16, 12], + "lg": [16, 12] + }, + "legendHeight":{ + "sm": 45, + "md": 30, + "lg": 30 + }, + + "mobileBreakpoint": 400, + "middleBreakpoint": 600, + "x_ticks_num": { + "sm": 3, + "md": 3, + "lg": 3 + } + } +} diff --git a/all-templates/small-multiple-bar-with-reference-lines/data.csv b/all-templates/small-multiple-bar-with-reference-lines/data.csv new file mode 100644 index 0000000..8920b57 --- /dev/null +++ b/all-templates/small-multiple-bar-with-reference-lines/data.csv @@ -0,0 +1,31 @@ +ycategory,plot,value,valuehigh,series +Q1,Total expenditure,48.2,54,Exports +Q2,Total expenditure,57.8,62,Exports +Q3,Total expenditure,64,68.6,Exports +Q4,Total expenditure,71.5,74.8,Exports +Q5,Total expenditure,77,86.6,Exports +Q1,Food and drinks,48.2,54,Exports +Q2,Food and drinks,57.8,62,Exports +Q3,Food and drinks,64,68.6,Exports +Q4,Food and drinks,71.5,74.8,Exports +Q5,Food and drinks,77,86.6,Exports +Q1,"Housing, fuel and power",70.2,71.5,Exports +Q2,"Housing, fuel and power",76.4,78.9,Exports +Q3,"Housing, fuel and power",82.4,85.1,Exports +Q4,"Housing, fuel and power",87.5,82.5,Exports +Q5,"Housing, fuel and power",98.4,105,Exports +Q1,Transport,34.8,26.6,Exports +Q2,Transport,55.4,40.4,Exports +Q3,Transport,73.9,55.8,Exports +Q4,Transport,102.2,81.1,Exports +Q5,Transport,141.9,100.5,Exports +Q1,Recreation and culture,36.1,24.1,Exports +Q2,Recreation and culture,49.5,32.4,Exports +Q3,Recreation and culture,66.6,45.9,Exports +Q4,Recreation and culture,89.1,55.5,Exports +Q5,Recreation and culture,132.7,69.8,Exports +Q1,Restaurants and hotels,23.2,8.4,Exports +Q2,Restaurants and hotels,31.6,10.5,Exports +Q3,Restaurants and hotels,46.6,15.7,Exports +Q4,Restaurants and hotels,69,23.8,Exports +Q5,Restaurants and hotels,93.9,33.1,Exports diff --git a/all-templates/small-multiple-bar-with-reference-lines/datadownload.xlsx b/all-templates/small-multiple-bar-with-reference-lines/datadownload.xlsx new file mode 100644 index 0000000..0dc7c0e Binary files /dev/null and b/all-templates/small-multiple-bar-with-reference-lines/datadownload.xlsx differ diff --git a/all-templates/small-multiple-bar-with-reference-lines/fallback.png b/all-templates/small-multiple-bar-with-reference-lines/fallback.png new file mode 100644 index 0000000..979b03e Binary files /dev/null and b/all-templates/small-multiple-bar-with-reference-lines/fallback.png differ diff --git a/all-templates/small-multiple-bar-with-reference-lines/index.html b/all-templates/small-multiple-bar-with-reference-lines/index.html new file mode 100644 index 0000000..f879498 --- /dev/null +++ b/all-templates/small-multiple-bar-with-reference-lines/index.html @@ -0,0 +1,459 @@ + + + + + + dvc1070 - The USA contributed the largest proportion of imports and exports across the top 5 service types except for intellectual property imports + + + + + + + + + + + + + +
Screenreader info
+ + + +
+ + + + + + + + + diff --git a/all-templates/small-multiple-range-plot/config.json b/all-templates/small-multiple-range-plot/config.json new file mode 100644 index 0000000..2b0a732 --- /dev/null +++ b/all-templates/small-multiple-range-plot/config.json @@ -0,0 +1,75 @@ +{ + "essential": { + "screenreadertext": "Set of small bar charts", + "graphic_data_url": "data.csv", + "dateFormat": "%d/%m/%Y", + + "colour_palette": { + "Exports": "#206095", + "Imports": "#003C57" + }, + "categorySort": [ + "Total Services", + "Technical, trade-related and other business services", + "Professional and management consulting services", + "Explicitly charged and other financial services", + "Intellectual Property", + "Personal Travel" + ], + "sourceText": ["Office for National Statistics"], + "xAxisLabel": "£", + "yAxisLabel": "Regions and Countries", + "yAxisScale": "auto_min_max_total" + }, + "optional": { + "margin": { + "groupMargin": { + "top": 0, + "right": 0, + "bottom": 0, + "left": 40 + }, + "sm": { + "top": 30, + "right": 23, + "bottom": 35, + "left": 20 + }, + "md": { + "top": 30, + "right": 23, + "bottom": 35, + "left": 20 + }, + "lg": { + "top": 30, + "right": 20, + "bottom": 35, + "left": 20 + } + }, + "chart_every":{ + "sm": 1, + "md": 2, + "lg": 3 + }, + "aspectRatio": { + "sm": [16, 12], + "md": [16, 12], + "lg": [16, 12] + }, + "legendHeight":{ + "sm": 45, + "md": 30, + "lg": 30 + }, + + "mobileBreakpoint": 400, + "middleBreakpoint": 600, + "x_ticks_num": { + "sm": 8, + "md": 8, + "lg": 8 + } + } +} diff --git a/all-templates/small-multiple-range-plot/data.csv b/all-templates/small-multiple-range-plot/data.csv new file mode 100644 index 0000000..8920b57 --- /dev/null +++ b/all-templates/small-multiple-range-plot/data.csv @@ -0,0 +1,31 @@ +ycategory,plot,value,valuehigh,series +Q1,Total expenditure,48.2,54,Exports +Q2,Total expenditure,57.8,62,Exports +Q3,Total expenditure,64,68.6,Exports +Q4,Total expenditure,71.5,74.8,Exports +Q5,Total expenditure,77,86.6,Exports +Q1,Food and drinks,48.2,54,Exports +Q2,Food and drinks,57.8,62,Exports +Q3,Food and drinks,64,68.6,Exports +Q4,Food and drinks,71.5,74.8,Exports +Q5,Food and drinks,77,86.6,Exports +Q1,"Housing, fuel and power",70.2,71.5,Exports +Q2,"Housing, fuel and power",76.4,78.9,Exports +Q3,"Housing, fuel and power",82.4,85.1,Exports +Q4,"Housing, fuel and power",87.5,82.5,Exports +Q5,"Housing, fuel and power",98.4,105,Exports +Q1,Transport,34.8,26.6,Exports +Q2,Transport,55.4,40.4,Exports +Q3,Transport,73.9,55.8,Exports +Q4,Transport,102.2,81.1,Exports +Q5,Transport,141.9,100.5,Exports +Q1,Recreation and culture,36.1,24.1,Exports +Q2,Recreation and culture,49.5,32.4,Exports +Q3,Recreation and culture,66.6,45.9,Exports +Q4,Recreation and culture,89.1,55.5,Exports +Q5,Recreation and culture,132.7,69.8,Exports +Q1,Restaurants and hotels,23.2,8.4,Exports +Q2,Restaurants and hotels,31.6,10.5,Exports +Q3,Restaurants and hotels,46.6,15.7,Exports +Q4,Restaurants and hotels,69,23.8,Exports +Q5,Restaurants and hotels,93.9,33.1,Exports diff --git a/all-templates/small-multiple-range-plot/datadownload.xlsx b/all-templates/small-multiple-range-plot/datadownload.xlsx new file mode 100644 index 0000000..0dc7c0e Binary files /dev/null and b/all-templates/small-multiple-range-plot/datadownload.xlsx differ diff --git a/all-templates/small-multiple-range-plot/fallback.png b/all-templates/small-multiple-range-plot/fallback.png new file mode 100644 index 0000000..979b03e Binary files /dev/null and b/all-templates/small-multiple-range-plot/fallback.png differ diff --git a/all-templates/small-multiple-range-plot/index.html b/all-templates/small-multiple-range-plot/index.html new file mode 100644 index 0000000..a1cba74 --- /dev/null +++ b/all-templates/small-multiple-range-plot/index.html @@ -0,0 +1,445 @@ + + + + + + dvc1070 - The USA contributed the largest proportion of imports and exports across the top 5 service types except for intellectual property imports + + + + + + + + + + + + +
Screenreader info
+ + + +
+ + + + + + + + +