I'm having an issue when trying to wire into the timechange or timechanged event handlers. I receive a Invalid start "NaN" error which appears to be being caused by adding a custom timebar...
Below is a sample of my code...
timeline.setOptions({
height: '100%',
editable: false,
moveable: true,
zoomable: true,
configure: true,
showCurrentTime: false,
start: vis.moment.utc().format('YYYY-MM-DDT00:00:00.000Z',
moment: function(date) {
return vis.moment(date).utc();
}
});
timeline.addCustomTime(vis.moment.utc().valueOf(), 'my-time-bar');
timeline.on('timechanged', function(props) {
console.log('timechanged...');
});
If I comment out the timeline.on('timechanged')
line I do not receive the error and all renders correctly. I receive the error in both Chrome and FireFox.