aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/sparkline.mdwn
blob: 5f5d08b5e7c75cfcff14c86dbd95952e57f31dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[[!template id=plugin name=sparkline author="[[Joey]]"]]
[[!tag type/chrome]]

This plugin implements the [[ikiwiki/directive/sparkline]] [[ikiwiki/directive]].
The directive allows for easily embedding sparklines into wiki pages.

# requirements

The plugin uses the [Sparkline PHP Graphing Library](http://sparkline.org/)
as it has better output than the native perl sparkline library. Therefore,
to use the plugin, you will need:

* The Sparkline PHP Graphing Library, installed in php's path so that
  php can find it when `sparkline/Sparkline.php` is required.
* The GD PHP module used by the Sparkline library.
* A "php" program in the path, that can run standalone php programs.
* [[!cpan Digest::SHA1]]

On a Debian system, this can be accomplished by installing these packages:
`libsparkline-php` `php5-gd` `php5-cli` `libdigest-sha1-perl`

This plugin also uses the [[!cpan Digest::SHA1]] perl module.