Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|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) | &cross; |
Expand All @@ -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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|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) | &cross; |
|Heatmap | [View](https://onsvisual.github.io/Simple-charts/all-templates/heatmap) | [`</>`](https://github.com/ONSvisual/Simple-charts/tree/master/all-templates/heatmap) | &cross; |
Expand Down
75 changes: 75 additions & 0 deletions all-templates/small-multiple-bar-with-reference-lines/config.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
31 changes: 31 additions & 0 deletions all-templates/small-multiple-bar-with-reference-lines/data.csv
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading