Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Google Chart API

From Wikipedia, the free encyclopedia
Online data charting service
icon
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "Google Chart API" – news ·newspapers ·books ·scholar ·JSTOR
(January 2009) (Learn how and when to remove this message)
Google Chart API
Original authorGoogle
Initial release2007
Final release
February 2010
Available inHTTP requests
Websitedevelopers.google.com/chart/image/

TheGoogle Chart API is a non-interactiveWeb service (nowdeprecated) that createsgraphicalcharts from user-supplied data. Google servers create aPNG image of a chart from data and formatting parameters specified by a user'sHTTP request. The service supports a wide variety of chart information and formatting. Users may conveniently embed these charts in aWeb page by using a simpleimage tag.

Originally theAPI was Google's internal tool to support rapid embedding of charts withinGoogle's own applications (likeGoogle 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, andradar charts, as well asVenn diagrams,scatter plots,sparklines,maps, google-o-meters, andQR 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 serviceGoogle 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.

PlatformNameWebsite
JavaGoogle Chart API wrapper[5]https://code.google.com/p/googlechartwrapper/
Javacharts4j[6]https://code.google.com/p/charts4j/
C#/.NETngcharthttps://code.google.com/p/ngchart/
Rubygcharthttps://web.archive.org/web/20100618222849/http://rubyforge.org/projects/gchart/
Pythongoogle-chartwrapperhttps://code.google.com/p/google-chartwrapper/
PHPgchartphphttps://github.com/pacbard/gChartPhp

See also

[edit]

References

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

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Google_Chart_API&oldid=1297988614"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp