pyOFC2 Python Open Flash Chart 2

Bar Chart

Make a Bar Chart To add more than one set of bars to a bar chart, see Bar Chart 2

def test_bar():
                                                                                     
    t = title(text=time.strftime('%a %Y %b %d'))
    b = bar()
    b.values = range(9,0,-1)
    chart = open_flash_chart()
    chart.title = t
    chart.add_element(b)
    return chart

Data used to generate the chart — bar.json

© 2009 Pradeep Kishore Gowda