.on('start', (d) => { // if we don't have a gameDateTime (which means this is called at the // beginning), then we should, at the start of every transition, // set the slider to this datum's time if (!gameDateTime) { const time = d.gameDateTime.getTime() const index = uniqueDates.indexOf(time) const text = dateline(d.gameDateTime).getAPDate() setSlider({ container: sliderContainer, value: index + 1 }) setSliderTooltip({ container: sliderContainer, text, index }) } })
.map(d => dateline(d).getAPDate())
arrivalString() { return Dateline(this.arrivalTime()).getAPTime(); }