Skip to content

Commit

Permalink
Merge pull request #240 from ONSvisual/239-column-chart-spacing-issues
Browse files Browse the repository at this point in the history
Turning off default x-scale rounding
  • Loading branch information
MikeLister authored May 2, 2024
2 parents d01022d + 220a9f4 commit 01ba494
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion column-chart-sm/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function drawGraphic() {
.paddingOuter(0.0)
.paddingInner(0.1)
.range([0, chart_width])
.round(true);
.round(false);

//use the data to find unique entries in the date column
x.domain([...new Set(graphic_data.map((d) => d.date))]);
Expand Down
2 changes: 1 addition & 1 deletion column-chart-stacked-sm/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function drawGraphic() {
.paddingOuter(0.0)
.paddingInner(0.1)
.range([0, chart_width])
.round(true);
.round(false);

const colour = d3
.scaleOrdinal()
Expand Down
2 changes: 1 addition & 1 deletion column-chart-stacked-with-line-sm/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function drawGraphic() {
.paddingOuter(0.0)
.paddingInner(0.1)
.range([0, chart_width])
.round(true);
.round(false);

const colour = d3
.scaleOrdinal()
Expand Down
2 changes: 1 addition & 1 deletion column-chart-stacked-with-line/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function drawGraphic() {
.paddingOuter(0.0)
.paddingInner(0.1)
.range([0, chart_width])
.round(true);
.round(false);

//use the data to find unique entries in the date column
x.domain([...new Set(graphic_data.map((d) => d.date))]);
Expand Down
2 changes: 1 addition & 1 deletion column-chart-stacked/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function drawGraphic() {
.paddingOuter(0.0)
.paddingInner(0.1)
.range([0, chart_width])
.round(true);
.round(false);

const colour = d3
.scaleOrdinal()
Expand Down
2 changes: 1 addition & 1 deletion column-chart-with-ci-sm/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function drawGraphic() {
.paddingOuter(0.0)
.paddingInner(0.1)
.range([0, chart_width])
.round(true);
.round(false);

//use the data to find unique entries in the date column
x.domain([...new Set(graphic_data.map((d) => d.date))]);
Expand Down
2 changes: 1 addition & 1 deletion column-chart/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function drawGraphic() {
.paddingOuter(0.0)
.paddingInner(0.1)
.range([0, chart_width])
.round(true);
.round(false);

//use the data to find unique entries in the date column
x.domain([...new Set(graphic_data.map((d) => d.date))]);
Expand Down

0 comments on commit 01ba494

Please sign in to comment.