Center timeline

This commit is contained in:
Franc Camps-Febrer
2018-12-27 17:40:17 +01:00
parent 345a1f2be2
commit 5222fc2481

View File

@@ -323,7 +323,9 @@ export default function(svg, newApp, ui, methods) {
const groupStep = (106 - 30) / domain.categories.length;
let groupYs = Array.apply(null, Array(domain.categories.length));
groupYs = groupYs.map((g, i) => {
return 30 + i * groupStep;
//return 30 + i * groupStep;
const h = 106 - 30
return (i + 1) * h / groupYs.length - 15;
});
scale.y = d3.scaleOrdinal()