xScale .domain(data.map(d => d.year)) .range([0, innerWidth]) .paddingInner(0.1) https://d3js.org/d3-scale/band#scaleBand