Exemple #1
0
	def radar(self):
		plot = Area_Hollow(colour = '#45909F', fill = '#45909F', fill_alpha = 0.4, values = [3, 4, 5, 4, 3, 3, 2.5])
		plot.set_width(1)
		plot.set_dot_size(4)
		plot.set_halo_size(1)
		plot.set_loop()
	
		chart = openFlashChart.template("Radar chart")
		chart.set_bg_colour('#DFFFEC')
		chart.set_radar_axis(max = 5, colour = '#EFD1EF', grid_colour = '#EFD1EF', labels = list('012345'), spoke_labels = list('1234567'))
		chart.set_tooltip(behaviour = 'proximity')
		chart.add_element(plot)

		return chart.encode()
Exemple #2
0
    def radar(self):
        plot = Area_Hollow(colour='#45909F',
                           fill='#45909F',
                           fill_alpha=0.4,
                           values=[3, 4, 5, 4, 3, 3, 2.5])
        plot.set_width(1)
        plot.set_dot_size(4)
        plot.set_halo_size(1)
        plot.set_loop()

        chart = openFlashChart.template("Radar chart")
        chart.set_bg_colour('#DFFFEC')
        chart.set_radar_axis(max=5,
                             colour='#EFD1EF',
                             grid_colour='#EFD1EF',
                             labels=list('012345'),
                             spoke_labels=list('1234567'))
        chart.set_tooltip(behaviour='proximity')
        chart.add_element(plot)

        return chart.encode()
Exemple #3
0
	def area_hollow(self):
		plot = Area_Hollow(colour = '#838A96', fill = '#E01B49', fill_alpha = 0.4, values = [math.sin(float(x)/10) * 1.9 for x in range(0, 62, 2)])
		plot.set_halo_size(1)
		plot.set_width(2)
		plot.set_dot_size(4)
		
		chart = openFlashChart.template("Area_Hollow chart")
		chart.set_y_axis(min = -2, max = 2, steps = 2, offset = False)
		chart.set_x_axis(labels = x_axis_labels(rotate = 'diagonal'), steps = 2)
		chart.add_element(plot)
		
		return chart.encode()
Exemple #4
0
    def area_hollow(self):
        plot = Area_Hollow(
            colour='#838A96',
            fill='#E01B49',
            fill_alpha=0.4,
            values=[math.sin(float(x) / 10) * 1.9 for x in range(0, 62, 2)])
        plot.set_halo_size(1)
        plot.set_width(2)
        plot.set_dot_size(4)

        chart = openFlashChart.template("Area_Hollow chart")
        chart.set_y_axis(min=-2, max=2, steps=2, offset=False)
        chart.set_x_axis(labels=x_axis_labels(rotate='diagonal'), steps=2)
        chart.add_element(plot)

        return chart.encode()