anuradax / charts4j

Automatically exported from code.google.com/p/charts4j
Other
0 stars 0 forks source link

Provide post request functionality. #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The google chart api now supports post request. Provide charts4j wrapper APIs 
to assist in forming a post request.

Original issue reported on code.google.com by Julien.C...@gmail.com on 11 Jun 2010 at 5:29

GoogleCodeExporter commented 8 years ago
I've created a simple patch that allows you to get the URL suffix, which you 
can then set as the data for your POST request.

With this patch, I've added the GChart.toParametersString() method that returns 
the chart parameters as a String. You can then write the parameters onto a 
URLConnection's stream writer and get the image back.

I hope that helps.

If anyone is in a hurry (like I was) you can find a .JAR I compiled after 
revision 211, with the patch applied:

http://joaomoreno.com/dropbox/charts4j-r211-patched.jar

Original comment by joaodpmo...@gmail.com on 29 Jul 2010 at 3:37

Attachments:

GoogleCodeExporter commented 8 years ago
Done.

Original comment by Julien.C...@gmail.com on 5 Jan 2011 at 5:56

GoogleCodeExporter commented 8 years ago
Could you please provide us an example of how to use this API with a post 
request? Thanks

Original comment by guillaum...@gmail.com on 10 Feb 2012 at 5:29

GoogleCodeExporter commented 8 years ago
It's pretty messy but you can see how we did it in the FindBugs codebase:

http://code.google.com/p/findbugs/source/browse/trunk/server/common/src/java/edu
/umd/cs/findbugs/flybush/ReportServlet.java#837

(in ReportServlet.showChartImg)

Original comment by keithl on 10 Feb 2012 at 5:41

GoogleCodeExporter commented 8 years ago
OMG. Is findbugs really using chart4j? That is soooo cool, and quite the honor. 
I used findbugs extensively during charts4j development.

When I did the last release, I forgot to update the javadoc, so you could not 
find it in the docs. See here

http://goo.gl/aKnll

Original comment by Julien.C...@gmail.com on 10 Feb 2012 at 8:07

GoogleCodeExporter commented 8 years ago
Hi Julien,
I've "URI too large" problem with 'charts4j'.
I want to try your jar to resolve my problem but link expired.

Can you send me '.jar'?

Best regards
Simone Romano

Original comment by s.romano...@gmail.com on 5 Feb 2015 at 10:46

GoogleCodeExporter commented 8 years ago
Please find the jar you are looking for here:

https://code.google.com/p/charts4j/downloads/list

Open up the latest zip file to find the jar you are looking for

Original comment by Julien.C...@gmail.com on 5 Feb 2015 at 6:13