You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using EventDrops in an Angular 4 application. I need to set the zoom programmatically, so I read the documentation and the example:
var eventDropsChart = d3.chart.eventDrops();
var element = d3.select('#chart_placeholder').datum(...);
eventDropsChart.call(eventDropsChart);
var zoom = element[0][0].zoom;
You just make something wrong.
It doesn't container a zoomend api in it's document, it's zoomable. var chart = d3.chart.eventDrops() .zoomable(true)
That will be work.
That you can try do not use d3.chart.eventDrops(),use eventDrop directly.like this var chart= eventDrops().zoomable(true); this.timeline = d3.select('#visual').datum(data).call(chart);
If you still have problems, you can provide more details.
Hello everybody!
I'm currently using EventDrops in an Angular 4 application. I need to set the zoom programmatically, so I read the documentation and the example:
I have something similar in my code:
but then I got undefined, so I'm unable to get the zoom.
I also tried to change the code to:
But then I got another error:
Is it a bug or am I doing something wrong?
Thanks!
The text was updated successfully, but these errors were encountered: