Skip to content

KrzysiekJ/gchart

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

gchart

A flexible Google Chart API wrapper.

Example

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:

from gchart.gchart.corechart import PieChartFactory

Instead, you may do something like:

import gchart
PieChartFactory = gchart.gchart.corechart.PieChartFactory

About

A flexible Google Chart API wrapper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages