What would be the best method to create a graph on a web page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What would be the best method to create a graph on a web page?

31st Mar 2020, 4:34 PM
Daniel
Daniel - avatar
2 Answers
+ 4
My first thought was "JS and canvas", but you could also create one with JS and svg... As you see, the match is between svg and canvas; and honestly, I don't think there's one better than the other: it really depends of your use case. * svg handle vector graphics, while canvas handle bitmaps. * js cannot be avoided if you want create the graph dynamically on user (client) side. Else, you could use images, even as vectors (svg is also a standalone file format), pre-computed or dynamically created from server side.
1st Apr 2020, 4:43 AM
visph
visph - avatar
0
Why set and immediatly remove the best answer mark on my answer? :o
2nd May 2020, 5:27 PM
visph
visph - avatar