bzr branch
http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k
65
by Gerald Kaszuba
fixed extension so markup works |
1 |
Python Google Chart |
2 |
===================
|
|
3 |
||
4 |
pygooglechart is a complete Python wrapper for the Google Chart API. |
|
5 |
||
6 |
pygooglechart works with Linux, Windows and Mac OS X. |
|
7 |
||
8 |
Example
|
|
9 |
-------
|
|
10 |
||
11 |
from pygooglechart import PieChart3D |
|
12 |
||
13 |
# Create a chart object of 250x100 pixels
|
|
14 |
chart = PieChart3D(250, 100) |
|
15 |
||
16 |
# Add some data
|
|
17 |
chart.add_data([20, 10]) |
|
18 |
||
19 |
# Assign the labels to the pie data
|
|
20 |
chart.set_pie_labels(['Hello', 'World']) |
|
21 |
||
22 |
# Print the chart URL
|
|
23 |
print chart.get_url() |
|
24 |
||
25 |
# Download the chart
|
|
26 |
chart.download('pie-hello-world.png') |
|
27 |
||
67
by Gerald Kaszuba
Fixed README link |
28 |
There are more examples in [the examples directory](https://github.com/gak/pygooglechart/tree/master/examples). |
66
by Gerald Kaszuba
Link to examples in README |
29 |
|
65
by Gerald Kaszuba
fixed extension so markup works |
30 |
Installation
|
31 |
------------
|
|
32 |
There are a few ways of installing it from source: |
|
33 |
||
34 |
If you have setuptools installed, simply run the following: |
|
35 |
||
36 |
easy_install pygooglechart |
|
37 |
||
38 |
Or get the sources and run: |
|
39 |
||
40 |
python setup.py install |
|
41 |
||
42 |