/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to README.markdown

  • Committer: Gustav Hartvigsson
  • Date: 2011-01-03 20:24:45 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20110103202445-qh7ogio9ined8ufv
Made it compatible with Python 3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
28
There are more examples in [the examples directory](https://github.com/gak/pygooglechart/tree/master/examples).
 
29
 
 
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