News for hackers. Stuff that matters.

nnnnnick

Re:New Chart.js beta version launched on Monday June 30, 2014 @05:17AM (#7964280)
Yep, you can call .toBase64Image() on your chart instance to return a png image encoded as a base 64 data url.
Re:New Chart.js beta version launched on Sunday June 29, 2014 @06:51PM (#7962805)
Sounds ace, let me know if there's anything I can do to help!
Re:New Chart.js beta version launched on Sunday June 29, 2014 @06:49PM (#7962799)
I did a while back for my university dissertation, I'll have to see if I can dig it out.

IIRC: canvas tends to outperform svg when dealing with a lot of individual objects, due to them being individual dom nodes in svg. However svg will outperform canvas drawing fewer nodes, on a larger canvas, due to canvas being bitmap based.

Re:New Chart.js beta version launched on Sunday June 29, 2014 @06:07PM (#7962657)
SVG is a good solution too, but it can really suffer performance-wise, especially on mobile, tablet and when animating svg node positions.
Re:New Chart.js beta version launched on Sunday June 29, 2014 @05:43PM (#7962556)
Cheers, sorry it took so long!
Re:New Chart.js beta version launched on Sunday June 29, 2014 @04:49PM (#7962349)
New site is responsive for mobile, so you should be seeing the new version!

This new release allows for custom chart types, using the same core API, so hopefully we'll see some community led new chart type extensions soon!

Re:An apology to open source on Tuesday March 19, 2013 @12:25PM (#5401838)
I'd misunderstood some of the issues I wrote about earlier in regard to the library. It is now back online for good, licensed under MIT. Sorry for all this kerfuffle.
Re:Chart.js - open source HTML5 charting library on Monday March 18, 2013 @05:23AM (#5393205)
Didn't use any particular software or tools as such, but used Google prettify (https://code.google.com/p/google-code-prettify/) for coloured syntax highlighting.

Wrote the content in plain HTML, and used jQuery to build the nav on left hand side from the headings on the page.

Re:Chart.js - open source HTML5 charting library on Monday March 18, 2013 @03:56AM (#5392981)
I found quite a few existing SVG based graphing libraries based off d3 or Raphael, and wanted to create something a bit more lightweight - canvas sacrifices interactivity for raw speed.

I wanted Chart.js to be dependency free, which has led to a footprint of only ~4.4kb when minified and gzipped, d3 is a lot more complex, and has a gzipped size of about 10x that.

It'll have to be up to you whether canvas is the right solution in your use case over SVG!

Re:Chart.js - open source HTML5 charting library on Monday March 18, 2013 @03:45AM (#5392956)
Just updated and closed this with an MIT license added to the docs and readme on Github.
Re:Chart.js - open source HTML5 charting library on Monday March 18, 2013 @03:45AM (#5392954)
Just updated the online docs and readme on Github with an MIT license, so feel free to use!