/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k
7 by gak
version bump, added BadContentTypeException, added a few examples, added COPYING licence, code is more PEP8 friendly, download() checks for content type and raises on bad http codes, add_data returns the index of the dataset, Line doesn't allow being an instance.
1
import random
2
3
def random_data(points=50, maximum=100):
4
    return [random.random() * maximum for a in xrange(points)]
5
10 by gak
Added label tests
6
def random_colour(min=20, max=200):
7
    func = lambda: int(random.random() * (max-min) + min)
8
    r, g, b = func(), func(), func()
9
    return '%02X%02X%02X' % (r, g, b)
10