Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gak/pygooglechart

pygooglechart is a complete Python wrapper for the Google Chart API.
https://github.com/gak/pygooglechart

Last synced: 3 months ago
JSON representation

pygooglechart is a complete Python wrapper for the Google Chart API.

Awesome Lists containing this project

README

        

[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)

Project Abandoned
-----------------

Many apologies. I've stopped maintaining this project due to personal time constraints.

I'm happy to forward users to any new forks, or to discuss PyPI ownership.

Python Google Chart
===================

pygooglechart is a complete Python wrapper for the Google Chart API.

pygooglechart works with Linux, Windows and Mac OS X.

Example
-------

from pygooglechart import PieChart3D

# Create a chart object of 250x100 pixels
chart = PieChart3D(250, 100)

# Add some data
chart.add_data([20, 10])

# Assign the labels to the pie data
chart.set_pie_labels(['Hello', 'World'])

# Print the chart URL
print chart.get_url()

# Download the chart
chart.download('pie-hello-world.png')

There are more examples in [the examples directory](https://github.com/gak/pygooglechart/tree/master/examples).

Installation
------------
There are a few ways of installing it from source:

If you have setuptools installed, simply run the following:

easy_install pygooglechart

Or get the sources and run:

python setup.py install