News for hackers. Stuff that matters.
Re:Show HN: Google Charts done in Canvas, side project by yannis on Sunday June 05, 2011 @02:59PM (#2622609)
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.

Re:Show HN: Google Charts done in Canvas, side project by irahul on Sunday June 05, 2011 @05:56PM (#2622938)
> 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.
Re:Show HN: Google Charts done in Canvas, side project by city41 on Sunday June 05, 2011 @03:09PM (#2622639)
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.
Re:Show HN: Google Charts done in Canvas, side project by anko on Sunday June 05, 2011 @05:40PM (#2622903)
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?

Re:Show HN: Google Charts done in Canvas, side project by irahul on Sunday June 05, 2011 @05:57PM (#2622939)
I looked at the source for goog/ui/serverchart.js and checked the documentation(yes, in that order:)).

There is no way to make it work without going through the Google chartserver.

Re:Show HN: Google Charts done in Canvas, side project by tosh on Monday June 06, 2011 @03:33AM (#2624018)
Isn't there a google charts js api? or does it also depend on google infrastructure (I mean except serving the js file)?
Re:Show HN: Google Charts done in Canvas, side project by pforpal on Sunday June 05, 2011 @03:08PM (#2622636)
could you recomment a tutorial or blogpost or source repo demonstrating how to do this?
Re:Show HN: Google Charts done in Canvas, side project by yannis on Sunday June 05, 2011 @03:17PM (#2622657)
You can have a look at http://code.google.com/p/closure-library/. What I did downloaded the files and peeked through all of them. Closure has not been very popular with the community, but is currently running all google applications such as Gmail.