News for hackers. Stuff that matters.
Re:A Beginner’s Guide to Chart.js by benmccann on Sunday October 06, 2019 @11:07AM (#21172495)
I think most chart libraries use SVG. There are trade-offs between the two approaches and both have their advantages. One of the places that canvas really shines is performance. In the past I've found Chart.js and some of the faster SVG libraries to be about on par with each other, but the upcoming Chart.js 2.9.0 release has had a couple major performance improvements that I think will make it significantly faster than probably any SVG library. It's an area we'll continue to work on since it's one of the main reasons to choose a canvas implementation over an SVG implementation.

I think the other advantage SVG has can be is if you want to do some advanced interactivity. That can sometimes be easier in SVG.

Re:A Beginner’s Guide to Chart.js by cseelus on Sunday October 06, 2019 @11:31AM (#21172633)
Thank you for your work on Chart.js. I used it exclusively for a couple of years and still think its great.
Re:A Beginner’s Guide to Chart.js by tmd83 on Sunday October 06, 2019 @01:51PM (#21173591)
So Chart.js doesn't have a way to generate sharp images for print and such purposes?
Re:A Beginner’s Guide to Chart.js by etimberg on Sunday October 06, 2019 @03:38PM (#21174498)
For printing, it should be sharp unless you are have specific print CSS. There's a bunch of discussion in https://github.com/chartjs/Chart.js/issues/1350
Re:A Beginner’s Guide to Chart.js by ldad on Sunday October 06, 2019 @02:12PM (#21173740)
There's an option that'll increase the resolution...

options: { devicePixelRatio: 2 }