pyOFC2 Python Open Flash Chart 2

Radar Chart

Radar Chart with filled area and value labels.

def test_radar_charts_1():
                                               
    chart = open_flash_chart() 
    chart.title = title(text='Radar Chart')
    area = area_hollow()
    area.width = 1
    area.dot_size = 1
    area.halo_size = 1
    area.colour = '#45909F'
    area.fill_colour = '#45909F'
    area.fill_alpha = 0.4
    area.loop = True
    area.values = [3, 4, 5, 4, 3, 3, 2.5]
    chart.add_element(area) 
    r = radar_axis(max=5)
    r.colour ='#EFD1EF'
    r.grid_colour = '#EFD1EF'
    ra = radar_axis_labels(labels=['0','1','2','3','4','5'])
    ra.colour = '#9F819F'
    r.labels = ra
    chart.radar_axis = r
    tip = tooltip()
    tip.proximity = 1
    chart.tooltip = tip
    chart.bg_colour = '#DFFFEC'
    return chart

Data used to generate the chart — radar_charts_1.json

© 2009 Pradeep Kishore Gowda