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: ImagesIncludes

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

Put the file gchart_2008-01-12.phpΔ in your cookbook-directory and include it in your configuration.

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

I'm currently looking at expanding this code to incorporate the ability to use other data formats (i.e. the decimal and expanded formats described in the specifications on Google) - David A Spitzley, 2008-02-28

Edit - History - Print - Recent Changes - Search
Page last modified on March 02, 2008, at 04:53 AM