Skip to main content

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
```

Project details


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.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file gchart-0.0.1.tar.gz.

File metadata

  • Download URL: gchart-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gchart-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5ff502155b14c808c3e557d201fbafe6724d2b6e65d40c549dfd4a4f2e8e557b
MD5 bb1fe3bfa9444c42f54b654a59c4cfa2
BLAKE2b-256 6650666d00fec49023481c295e8be43a46aabd735f40e175cb42a1c8f25b51a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page