Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Am I right in thinking that you are using Vue.js to create/delete/update the DOM elements? If so, how does performance typically compare to using the usual D3 enter()/exit() etc methods for that?


I used to do performance-sensitive things in D3.js (e.g. many moving dots).

For projects with Vue.js, the performance was not my concern.

In any case, if needed, you can use D3.js rendering within a Vue component.


Thanks, that makes sense. I'm currently doing D3.js rendering within a Vue component. I suspect that my code will be cleaner if I switch to the Vue.js constructs for managing the DOM, rather than D3's enter()/exit()/update(), so even if the performance is ultimately the same, there should still be a maintainability win.

It sounds like it's worth me doing a Vue implementation and running some benchmarks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: