A flexible Google Chart API wrapper
Project description
gchart
======
A flexible Google Chart API wrapper.
Example
-------
```python
from gchart import gchart
chart_class = gchart.corechart.PieChartFactory(some_piechart_option='foo')
chart = chart_class(
[("name", "string"), ("no. of donuts eaten", "number")],
[("Joe", 3), ("Bob", 5), ("Helen", 9)],
another_piechart_option = "bar"
)
```
The you can call `chart.initialize_html()` and `chart.render_html()`...
Note that because `corechart` and `PieChartFactory` are created dynamically, you cannot write:
```python
from gchart.gchart.corechart import PieChartFactory
```
Instead, you may do something like:
```python
import gchart
PieChartFactory = gchart.gchart.corechart.PieChartFactory
```
======
A flexible Google Chart API wrapper.
Example
-------
```python
from gchart import gchart
chart_class = gchart.corechart.PieChartFactory(some_piechart_option='foo')
chart = chart_class(
[("name", "string"), ("no. of donuts eaten", "number")],
[("Joe", 3), ("Bob", 5), ("Helen", 9)],
another_piechart_option = "bar"
)
```
The you can call `chart.initialize_html()` and `chart.render_html()`...
Note that because `corechart` and `PieChartFactory` are created dynamically, you cannot write:
```python
from gchart.gchart.corechart import PieChartFactory
```
Instead, you may do something like:
```python
import gchart
PieChartFactory = gchart.gchart.corechart.PieChartFactory
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gchart-0.0.2.tar.gz
(2.9 kB
view details)
File details
Details for the file gchart-0.0.2.tar.gz
.
File metadata
- Download URL: gchart-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33ec37fa6e2f43f64024b487dfd97542705900f6642770f9024341d0b02fb5f0 |
|
MD5 | 142321d2a83a1c7ddbcef815adb9b835 |
|
BLAKE2b-256 | f81df30176f2e0a75a62d4e04e36f20e3e3cf884bedab412cc7240ff2f4d221c |