Fix d3 x scale definition
This commit is contained in:
@@ -29,9 +29,7 @@ function App() {
|
|||||||
const xScale = d3
|
const xScale = d3
|
||||||
.scaleBand()
|
.scaleBand()
|
||||||
.domain(sortedResponses)
|
.domain(sortedResponses)
|
||||||
.range([0, sortedResponses.length * config.groupSpacing])
|
.range([0, sortedResponses.length * config.groupSpacing]);
|
||||||
.padding(0.1);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="chart-container">
|
<div className="chart-container">
|
||||||
|
|||||||
Reference in New Issue
Block a user