Exemplo n.º 1
0
def make_chart(request):
    chart = XYLineChart(640, 400)
    chart.set_colours(['FF0000', '00FF00', '0000FF'])

    # add a few attributes to build the legend incrementally
    chart.devices = []
    chart._ranges = []

    return chart