Fix d3 x scale definition

This commit is contained in:
Adrian Rumpold
2025-07-09 12:41:15 +02:00
parent 8019094c84
commit 8d8626cf63

View File

@@ -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">