Guys, it's satire. Pretty good satire (the code block where he keeps mistyping bash commands should have given it away).
Also note how the author's tagline is 'javascript clickbait enthusiast' :-)
13 karma · joined June 28, 2016
Also note how the author's tagline is 'javascript clickbait enthusiast' :-)
Achieved this by (admittedly slightly clunky way) of sucking the SVG out of the chart and sending it to the server via ajax. Server intercepts SVG and passes it to inkscape which does pretty good command line svg -> pdf... then, sends back completed PDF.
One gotcha is that you won't get any CSS this way, so all styling has to be done via SVG props.