Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

GoogleChart

Summary: Include Charts generated by Google Chart API
Version: 2008-01-12
Prerequisites: ?
Status: alpha
Maintainer: ?
Categories: Images, Includes, Google
Users: (view? / edit)
Discussion: GoogleChart-Talk

Questions answered by this recipe

Is it possible to use Google Chart API to describe a chart inside a wiki and let it be generated by Google?

Description

The recipe introduces a new markup to describe a Google-Chart.

Installation

include_once("$FarmD/cookbook/gchart_2008-01-12.php");

Use

This first version only supports the three obligatory parameters:

  • chart data (as documented here)
  • type of chart (as documented here)
  • size of the chart separated in xsize and ysize

So the resulting markup may look like this example: (:gchart data=abfgij xsize=150 ysize=100 type=lc:)

which would display as .

Notes

There is still much to improve. So the encoding is inexpedient for a wiki author and more parameters should be supported.

User should keep in mind, that their data is sent to Google...

Release Notes

This is a first release. It is more or less a proof of concept than a solution. If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See Also

PmGraphViz

A solution for MediaWiki http://code.google.com/p/gchart4mw

Contributors

Ansgar

Comments

See discussion at GoogleChart-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on October 20, 2013, at 11:17 PM