W
W
Worddoc2016-08-02 14:10:37
css
Worddoc, 2016-08-02 14:10:37

Canvas or svg for dynamic charts?

Hello. Interested in the pros and cons of using canvas / svg for graphs and charts that will dynamically change before our eyes. What do you advise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dom1n1k, 2016-08-02
@Worddoc

SVG is more convenient, Canvas (with the right approach) is faster - so choose.
And then I made a page with responsive SVG charts with the Chartist.js library
https://gionkunz.github.io/chartist-js/
There are 20 of them on the page, but each one is generally quite simple.
So my browser window resize (powerful desktop, fast modern browser) works out in 2 seconds. And on a mobile phone, the whole thing is drawn in 5-7 seconds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question