Jump to content

Google Chart API: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Added Google Image Charts drop-in replacement alternative
Undid revision 1223197366 by Rodrigowolpert (talk)
 
(35 intermediate revisions by 18 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 = [[Java (programming language)|JavaScript]]
| language = [[HTTP]] requests
| status =
| discontinued = yes
| genre =
| genre =
| license =
| license =
| website = {{URL|https://code.google.com/apis/chart/}}
| website = {{URL|https://developers.google.com/chart/image/}}
}}
}}


The '''Google Chart API''' is a tool that lets people easily create a chart from some data and embed it in a web page. Google creates a [[Portable Network Graphics|PNG]] image of a chart from data and formatting parameters in an [[HTTP]] request. Many types of charts are supported, and by making the request into an image tag, people can simply include the chart in a web page.
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 it was an 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.
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.
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.


This [[API]] was [[deprecated]] in 2012<ref>[http://googledevelopers.blogspot.com.br/2012/04/changes-to-deprecation-policies-and-api.html Google Developers Blog]</ref> with guaranteed availability until April 2015. After that period, Google reserves the right to turn it off without notice, although as of April 2016, there are no plans to do so.<ref>[https://developers.google.com/chart/image/ Image Charts documentation, retrieved 6 April 2016]</ref> The alternative recommended by Google is Google Charts.<ref>[https://developers.google.com/chart/ Google Charts]</ref> In 2016 an alternative was launch called [https://image-charts.com Image-Charts] that offers a drop-in replacement for the deprecated Google Image Charts service and adds optional commercial support.
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 ==
Line 45: Line 46:
! Platform !! Name !! Website
! Platform !! Name !! Website
|-
|-
| [[Java (programming language)|Java]] || Google Chart API wrapper<ref>[https://code.google.com/p/googlechartwrapper/ Google Chart API wrapper]</ref> || https://code.google.com/p/googlechartwrapper/
| [[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<ref>[https://code.google.com/p/charts4j/ charts4j]</ref> || https://code.google.com/p/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 || https://code.google.com/p/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 || https://code.google.com/p/google-chartwrapper/
| [[Python (programming language)|Python]] || google-chartwrapper || https://code.google.com/p/google-chartwrapper/
Line 57: Line 58:
| [[PHP]] || gchartphp || https://github.com/pacbard/gChartPhp
| [[PHP]] || gchartphp || https://github.com/pacbard/gChartPhp
|}
|}

==See also==
* [[Comparison of JavaScript charting frameworks]]
* [[List of information graphics software]]


== References ==
== References ==
Line 63: Line 68:
== External links ==
== External links ==
*[https://code.google.com/apis/chart/ Google Chart API]
*[https://code.google.com/apis/chart/ Google Chart API]
*[https://image-charts.com Image-Charts alternative]


[[Category:Google services|Chart API]]
[[Category:Google services|Chart API]]

Latest revision as of 17:32, 3 July 2024

Google Chart API
Original author(s)Google
Initial release2007
Final release
February 2010
Available inHTTP requests
Websitedevelopers.google.com/chart/image/

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]
  1. ^ "Changes to deprecation policies and API spring cleaning". Retrieved 2022-03-14.
  2. ^ "Google Charts: Terms of Service: Deprecation Policy".
  3. ^ "Image Charts". Google Developers. Retrieved 2022-03-14.
  4. ^ "Google Charts: Interactive charts for browsers and mobile devices".
  5. ^ "Google Code Archive - Long-term storage for Google Code Project Hosting". code.google.com. Retrieved 2022-03-14.
  6. ^ "Google Code Archive - Long-term storage for Google Code Project Hosting". code.google.com. Retrieved 2022-03-14.
[edit]