Live data from Hacker News

New Chart.js beta version launched

chartjs.org

31–40 of 64 posts

Re: New Chart.js beta version launched

#31

Why canvas instead of svg?

SVG is a good solution too, but it can really suffer performance-wise, especially on mobile, tablet and when animating svg node positions.

Canvas is bitmap-based, while SVG is vector. If you need to print the chart SVG is going to look a lot better. Also, if you pinch-zoom the chart, SVG is going to look better. Canvas doesn't support animation -- you have to code it yourself. SVG performance is quite good unless you have thousands of elements, which a chart isn't going to have.

Re: New Chart.js beta version launched

#32

At work, we use Google Charts to chart data, then send images of those charts to users via email, inline. We are told that this functionality will be deprecated in the API some time next year. Anyone have an idea of how to mitigate that? Emails dont support javascript so not sure how to get around this. Just for some clarity, if you happen to use Sendgrid, they do the same thing. Google chart images in an email.

Something that involves this possibly? http://www.paulhammond.org/webkit2png/

Might be overkill, but would allow quite a bit of flexibility.

Re: New Chart.js beta version launched

#33

At work, we use Google Charts to chart data, then send images of those charts to users via email, inline. We are told that this functionality will be deprecated in the API some time next year. Anyone have an idea of how to mitigate that? Emails dont support javascript so not sure how to get around this. Just for some clarity, if you happen to use Sendgrid, they do the same thing. Google chart images in an email.

The general idea is to render the chart in a headless browser and grab a screenshot.

http://phantomjs.org/screen-capture.html

Re: New Chart.js beta version launched

#35
post #21

Earlier quoted context omitted.

Don't forget Highcharts... http://www.highcharts.com

Just from a cursory glance, it appears that Chartjs is entirely free and you can do what you want with it, while Highcharts is not.

It would be nice if this distinction was stated unambiguously on the front page

here's the license if you were looking for it like I was

https://github.com/nnnick/Chart.js/blob/master/LICENSE.md

Re: New Chart.js beta version launched

#36
post #5
post #3

I like Chart.js, I can't tell if I'm looking at the beta from my phone though. I'd hope they add a scatter plot then it'd be close to perfect. There might be a fork I haven't found yet, but I know anything I made wouldn't look as nice.

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!

Thanks! I'll see if I can give it a shot, I just went back after grabbing my laptop and noticed the section on writing new chart types. Maybe I can figure it out. I have a project in mind I could use this for.

Re: New Chart.js beta version launched

#37

At work, we use Google Charts to chart data, then send images of those charts to users via email, inline. We are told that this functionality will be deprecated in the API some time next year. Anyone have an idea of how to mitigate that? Emails dont support javascript so not sure how to get around this. Just for some clarity, if you happen to use Sendgrid, they do the same thing. Google chart images in an email.

If you're ok with hosting the images yourself, I'd recommend matplotlib (http://matplotlib.org/ ) as a pretty good chart library.

Re: New Chart.js beta version launched

#40
post #27

Earlier quoted context omitted.

Don't forget Highcharts... http://www.highcharts.com

Big fan of Highcharts. Like that you can export charts to a png. Big deal for me, don't think chart.js offers anything like that?

FusionCharts can export charts to PNG, JPG, PDF and SVG. I've been trying both FusionCharts and HighCharts for past few weeks and I can say that I am a bit inclined towards FusionCharts. Had this discussion the other day as well when Epoch[1] was released.

[1] https://news.ycombinator.com/item?id=7948560

Post reply on HN