top | item 2622558

Show HN: Google Charts done in Canvas, side project

143 points| city41 | 15 years ago |mattgreer.org | reply

28 comments

order
[+] yannis|15 years ago|reply
You can run the charts through Google's closure locally http://closure-library.googlecode.com/svn/trunk/closure/goog...

All the routines are public, there is no need to go through the API.

[+] irahul|15 years ago|reply
> You can run the charts through Google's closure locally

It talks to google chart server.

    goog.ui.ServerChart.CHART_SERVER_URI = 'http://chart.apis.google.com/chart';
It won't work without talking to the server.
[+] city41|15 years ago|reply
I did not know that. Thanks for the tip. My project is more of an experiment and for personal exploration and all that. So I don't mind if it has a strong competitor.
[+] anko|15 years ago|reply
I can't find any way to use that locally - it says

ui.ServerChart Extends goog.ui.Component

Will construct a chart using Google's chartserver.

is there some way to stop it talking to Google's chartserver?

[+] pforpal|15 years ago|reply
could you recomment a tutorial or blogpost or source repo demonstrating how to do this?
[+] knowledgesale|15 years ago|reply
Great job!

Also, there are many other Javascript visualization libraries besides the Google Chart API that you might want to know about (if you did't). All of them are open and can be locally run.

Check out e.g.

http://vis.stanford.edu/protovis/

http://flare.prefuse.org/

[+] tarmstrong|15 years ago|reply
Somewhat related: there's a Processing port to JavaScript.

http://processingjs.org/

You can write your code in Processing or JavaScript, which is nice if you want to take advantage of the Processing library without having to learn a specific language.

[+] patrickod|15 years ago|reply
One of the major gripes I had when I played around with the Google charts API is that it didn't seem to support log scales. Implement that and I'm sure you'll have won the hearts of a lot of frustrated developers. Looks great otherwise.
[+] personalcompute|15 years ago|reply
You can definitely use log scales with google charts, just it won't do it for you. You'll have to perform the math beforehand and send custom number labels.
[+] tnc|15 years ago|reply
Its very good to have an alternative to google charts. Your license should cover commercial use.
[+] dangrossman|15 years ago|reply
It's a standard 3-clause BSD license. Commercial use and distribution is allowed.
[+] tchvil|15 years ago|reply
A big advantage of CANVAS is to display charts on Android phones. Most of today's Google charts use SVG that, for some obscure reasons, can't be displayed on these devices out of the box.