getValuePosition = (index, values, width) => {
let x = scaleBand().rangeRound([20, width - 75])
x.domain(values.map(d => {
return d;
}));
return x(values[index]);
}
view raw getValuePosition.js hosted with ❤ by GitHub