, event.transform)
      chronologyScale.range([-width / 2 + margin.left, width / 2 - margin.right].map(d => event.transform.applyX(d)))
      svg.selectAll('.chronology-axis').call(chronologyAxis)
      updatePopup()
    }))
}

function chronologyAxis (g) {
  const r = chronologyScale.range()
  g.attr('transform', `translate(0, ${height / 2 - margin.bottom})`)
    .call(d3.axisBottom(chronologyScale).ticks((r[1] - r[0]) / 100).tickSizeOuter(0))
}

function chronologyConstraint (d) {
  if (chronology && d.y