palantir / plottable

:bar_chart: A library of modular chart components built on D3
http://plottablejs.org/
MIT License
2.98k stars 221 forks source link

Poor panning performance in safari on mac #2872

Open jasperSpeicher opened 9 years ago

jasperSpeicher commented 9 years ago

Hello,

I have built the Open mHealth Web Visualization library around plottable. http://www.openmhealth.org/see-it-believe-it-the-web-visualization-library/

In Chrome, panning works great for our code. But in Safari on my mac, the performance is sluggish/broken. You can check out a fiddle here: http://jsfiddle.net/jasperspeicher/dremvboo/

I have tried removing our drag callback, which updates the tooltip position, but there is no improvement. Feel free to check out the source in our git repo: https://github.com/openmhealth/web-visualizations/tree/master/src

Thoughts?

Thank you! Jasper

hellochar commented 7 years ago

Hey @jasperSpeicher, sorry for the delay here - cool to see you guys chose Plottable! Panning on both Chrome and Safari felt somewhat sluggish for me, and debugging looks like there's some layout thrashing involved in re-rendering the time axis each frame. We'll keep this in mind when prioritizing how to tackle performance improvements. Thanks for the report!