Google Chart API: Difference between revisions
Ricordisamoa (talk | contribs) m →External Libraries: misspelling |
Undid revision 1223197366 by Rodrigowolpert (talk) |
||
(45 intermediate revisions by 26 users not shown) | |||
Line 1: | Line 1: | ||
{{Short description|Online data charting service}} |
|||
{{primary sources|date=January 2009}} |
{{primary sources|date=January 2009}} |
||
Line 16: | Line 17: | ||
| operating system = |
| operating system = |
||
| platform = |
| platform = |
||
| language = [[ |
| language = [[HTTP]] requests |
||
| |
| discontinued = yes |
||
| genre = |
| genre = |
||
| license = |
| license = |
||
| website = {{URL| |
| website = {{URL|https://developers.google.com/chart/image/}} |
||
}} |
}} |
||
The '''Google Chart API''' is a |
The '''Google Chart API''' is a non-interactive [[Web service]] (now [[deprecated]]) that creates [[Graphics|graphical]] [[chart]]s from user-supplied data. Google servers create a [[Portable Network Graphics|PNG]] image of a chart from data and formatting parameters specified by a user's [[HTTP]] request. The service supports a wide variety of chart information and formatting. Users may conveniently embed these charts in a [[Web page]] by using a simple [[HTML element#img|image tag]]. |
||
Originally |
Originally the [[API]] was Google's internal tool to support rapid embedding of charts within [[Google]]'s own applications (like [[Google Finance]] for example). Google figured it would be a useful tool to open up to web developers. It officially launched on December 6, 2007. |
||
Currently, line, bar, pie, and [[radar charts]], as well as [[Venn diagrams]], [[scatter plots]], [[sparklines]], [[ |
Currently, line, bar, pie, and [[radar charts]], as well as [[Venn diagrams]], [[scatter plots]], [[sparklines]], [[map]]s, google-o-meters, and [[QR codes]] are supported. |
||
Google deprecated the API in 2012<ref>{{Cite web |title=Changes to deprecation policies and API spring cleaning |url=https://developers.googleblog.com/2012/04/changes-to-deprecation-policies-and-api.html |access-date=2022-03-14 |language=en}}</ref><ref>{{cite web|url=https://developers.google.com/chart/terms|title=Google Charts: Terms of Service: Deprecation Policy}}</ref> with guaranteed availability until April 2015. On March 18, 2019 Google turned off the API.<ref>{{Cite web |title=Image Charts |url=https://developers.google.com/chart/image |access-date=2022-03-14 |website=Google Developers |language=en}}</ref> Google recommends the successor service [[Google Charts]].<ref>{{cite web|url=https://developers.google.com/chart/|title=Google Charts: Interactive charts for browsers and mobile devices.}}</ref> |
|||
== Example == |
== Example == |
||
The following URL creates the pie chart below:<br/> |
The following URL creates the pie chart below:<br/> |
||
[http://chart.apis.google.com/chart?chs=200x200&chdlp=b&chtt=Uberman&chdl=Asleep|Awake&chd=t:1,11,1,11,1,11,1,11,1,11,1,11&cht=p&chco=586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F http://chart.apis.google.com/chart?<br/>chs=200x200<br/>&chdlp=b<br/>&chtt=Uberman<br/>&chdl=Asleep|Awake<br/>&chd=t:1,11,1,11,1,11,1,11,1,11,1,11<br/>&cht=p |
[http://chart.apis.google.com/chart?chs=200x200&chdlp=b&chtt=Uberman&chdl=Asleep|Awake&chd=t:1,11,1,11,1,11,1,11,1,11,1,11&cht=p&chco=586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F http://chart.apis.google.com/chart?<br/>chs=200x200<br/>&chdlp=b<br/>&chtt=Uberman<br/>&chdl=Asleep|Awake<br/>&chd=t:1,11,1,11,1,11,1,11,1,11,1,11<br/>&cht=p<br/>&chco=586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F] |
||
[[Image:Uberman.png]] |
[[Image:Uberman.png]] |
||
Line 45: | Line 46: | ||
! Platform !! Name !! Website |
! Platform !! Name !! Website |
||
|- |
|- |
||
| [[Java (programming language)|Java]] |
| [[Java (programming language)|Java]] || Google Chart API wrapper<ref>{{Cite web |title=Google Code Archive - Long-term storage for Google Code Project Hosting. |url=https://code.google.com/archive/p/googlechartwrapper |access-date=2022-03-14 |website=code.google.com}}</ref>|| https://code.google.com/p/googlechartwrapper/ |
||
|- |
|- |
||
| [[Java (programming language)|Java]] || charts4j |
| [[Java (programming language)|Java]] || charts4j<ref>{{Cite web |title=Google Code Archive - Long-term storage for Google Code Project Hosting. |url=https://code.google.com/archive/p/charts4j |access-date=2022-03-14 |website=code.google.com}}</ref>|| https://code.google.com/p/charts4j/ |
||
|- |
|- |
||
| [[C Sharp (programming language)|C#]]/[[.NET]] || ngchart || |
| [[C Sharp (programming language)|C#]]/[[.NET Framework|.NET]] || ngchart || https://code.google.com/p/ngchart/ |
||
|- |
|- |
||
| [[Ruby (programming language)|Ruby]] || gchart || http://rubyforge.org/projects/gchart |
| [[Ruby (programming language)|Ruby]] || gchart || https://web.archive.org/web/20100618222849/http://rubyforge.org/projects/gchart/ |
||
|- |
|- |
||
| [[Python (programming language)|Python]] || google-chartwrapper || |
| [[Python (programming language)|Python]] || google-chartwrapper || https://code.google.com/p/google-chartwrapper/ |
||
|- |
|- |
||
| [[PHP]] || gchartphp || |
| [[PHP]] || gchartphp || https://github.com/pacbard/gChartPhp |
||
|} |
|} |
||
==See also== |
|||
* [[Comparison of JavaScript charting frameworks]] |
|||
* [[List of information graphics software]] |
|||
== References == |
== References == |
||
Line 62: | Line 67: | ||
== External links == |
== External links == |
||
*[ |
*[https://code.google.com/apis/chart/ Google Chart API] |
||
⚫ | |||
[[Category:Google services|Chart API]] |
[[Category:Google services|Chart API]] |
||
⚫ |
Latest revision as of 17:32, 3 July 2024
Original author(s) | |
---|---|
Initial release | 2007 |
Final release | February 2010
|
Available in | HTTP requests |
Website | developers |
The Google Chart API is a non-interactive Web service (now deprecated) that creates graphical charts from user-supplied data. Google servers create a PNG image of a chart from data and formatting parameters specified by a user's HTTP request. The service supports a wide variety of chart information and formatting. Users may conveniently embed these charts in a Web page by using a simple image tag.
Originally the API was Google's internal tool to support rapid embedding of charts within Google's own applications (like Google Finance for example). Google figured it would be a useful tool to open up to web developers. It officially launched on December 6, 2007.
Currently, line, bar, pie, and radar charts, as well as Venn diagrams, scatter plots, sparklines, maps, google-o-meters, and QR codes are supported.
Google deprecated the API in 2012[1][2] with guaranteed availability until April 2015. On March 18, 2019 Google turned off the API.[3] Google recommends the successor service Google Charts.[4]
Example
[edit]The following URL creates the pie chart below:
http://chart.apis.google.com/chart?
chs=200x200
&chdlp=b
&chtt=Uberman
&chdl=Asleep|Awake
&chd=t:1,11,1,11,1,11,1,11,1,11,1,11
&cht=p
&chco=586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F
External Libraries
[edit]Instead of creating the URL request manually, there are many open source libraries available for most programming languages.
Platform | Name | Website |
---|---|---|
Java | Google Chart API wrapper[5] | https://code.google.com/p/googlechartwrapper/ |
Java | charts4j[6] | https://code.google.com/p/charts4j/ |
C#/.NET | ngchart | https://code.google.com/p/ngchart/ |
Ruby | gchart | https://web.archive.org/web/20100618222849/http://rubyforge.org/projects/gchart/ |
Python | google-chartwrapper | https://code.google.com/p/google-chartwrapper/ |
PHP | gchartphp | https://github.com/pacbard/gChartPhp |
See also
[edit]References
[edit]- ^ "Changes to deprecation policies and API spring cleaning". Retrieved 2022-03-14.
- ^ "Google Charts: Terms of Service: Deprecation Policy".
- ^ "Image Charts". Google Developers. Retrieved 2022-03-14.
- ^ "Google Charts: Interactive charts for browsers and mobile devices".
- ^ "Google Code Archive - Long-term storage for Google Code Project Hosting". code.google.com. Retrieved 2022-03-14.
- ^ "Google Code Archive - Long-term storage for Google Code Project Hosting". code.google.com. Retrieved 2022-03-14.