Live data from Hacker News

Chart.js is back online

chartjs.org

71–80 of 127 posts

Re: Chart.js is back online

#71
Congrats on being able to open source this and thank you for doing so.

Honest question: Is animation really a needed feature for this? The opening animation adds no information value and has the negative effect of making the user think the graphics are actually interactive. I'm sure the animation itself isn't memory/processor intensive but it seems like a really unnecessary feature for a charting library that creates very beautiful, static graphs.

edit: OK everyone, I'm not an idiot: of course you should use animated graphs when showing things to the suits...that's the number one rule of graphic design, I believe :).

I only questioned it here because the OP's focus seems to be on a fairly clean and minimalist library, and the one-time startup animations seems to go against that aesthetic. But no doubt, they do liven up the page.

Re: Chart.js is back online

#72
post #55
post #48

Earlier quoted context omitted.

Clicks and hovers can be done on canvas, using hack that renders on second (invisible) canvas each object with its own, constant color and then checking color of the pixel at coordinates of cursor. It would probably need some kind of scene abstraction though.

Alternatively, just put some invisible DOM elements on top of the canvas and put your click handlers on those. It's imagemaps all over again ;)

This is how flot works. The base chart is drawn on canvas. All labels including axes, legends and mouseovers are DOM elements that are absolutely positioned over the canvas.

The canvas itself is always inside a canvascontainer div that also contains all the other dom elements.

Re: Chart.js is back online

#73
post #51

So why would I use this instead of D3.js?

This is a significantly higher abstraction than D3. Charts.js is comparable to NVD3, dc.js, xCharts, all of which are built on top of D3.

Thanks for mentioning these. I didn't know about them. Do you know if there is any good charting higher abstractions for "node" graphs (http://en.wikipedia.org/wiki/Graph_(abstract_data_type))? I only know about the force layout ones in d3.

Nevermind, I found this: http://stackoverflow.com/questions/7034/graph-visualization-...

(Although I'm still lokking for a good tool for visualizing path algorithms (TSP, A* etc))

Re: Chart.js is back online

#76
post #71

Congrats on being able to open source this and thank you for doing so. Honest question: Is animation really a needed feature for this? The opening animation adds no information value and has the negative effect of making the user think the graphics are actually interactive. I'm sure the animation itself isn't memory/processor intensive but it seems like a really unnecessary feature for a charting library that creates…

Animations on graphs have come too far. But i can agree with you on some part that at a few places animations are not needed. If you look at the documentation (http://www.chartjs.org/docs/) then you can choose in the configurations to switch it off for all the graphs.

Total power !

Re: Chart.js is back online

#77
I'm really happy to see this project resurface, I had already added it to my "must check out" projects. Glad Nick pulled it off.

I don't care about the how and why it's back, I'm just happy that it is.

Re: Chart.js is back online

#78
post #64

They look quite nice. But I would prefer that the default way of initializing the dataset is by loading a HTML table. This way content would always be accessible, even without Javscript and also by crawlers like Google.

There's nothing stopping you from doing that with a pinch of javascript.

Re: Chart.js is back online

#79

Ok, is this the best marketing campaign for an open-source project or what?!? I starred it yesterday but my guess is you've got a lot more people on board now!

Ok, is this the best marketing campaign for an open-source project or what?

Don't think so:

@_nnnick This is all just one big marketing ploy, isn’t it? ;P

@DanHarper7 wouldn't that have been amazing? I'm not that smart though unfortunately.

https://twitter.com/_nnnick/status/314049798502248448

Edit: Apologies, I initially took your comment as cynical towards Nick :(

Post reply on HN