Google Chart API
| Google Chart API | |
|---|---|
| Original author | |
| 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
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
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
References
- ^ "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.
External links
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
