Example #1
0
 def test_box():
     chart = Box()
     chart.add('One', [15, 8, 2, -12, 9, 23])
     chart.add('Two', [5, 8, 2, -9, 23, 12])
     chart.add('Three', [8, -2, 12, -5, 9, 3])
     chart.add('Four', [5, 8, 2, -9, -3, 12])
     chart.add('Five', [8, 12, 12, -9, 5, 13])
     chart.x_labels = map(str, range(5))
     return chart.render_response()
Example #2
0
 def test_box():
     chart = Box()
     chart.add('One', [15, 8, 2, -12, 9, 23])
     chart.add('Two', [5, 8, 2, -9, 23, 12])
     chart.add('Three', [8, -2, 12, -5, 9, 3])
     chart.add('Four', [5, 8, 2, -9, -3, 12])
     chart.add('Five', [8, 12, 12, -9, 5, 13])
     chart.x_labels = map(str, range(5))
     return chart.render_response()
Example #3
0
 def test_box():
     chart = Box()
     chart.add("One", [15, 8, 2, -12, 9, 23])
     chart.add("Two", [5, 8, 2, -9, 23, 12])
     chart.add("Three", [8, -2, 12, -5, 9, 3])
     chart.add("Four", [5, 8, 2, -9, -3, 12])
     chart.add("Five", [8, 12, 12, -9, 5, 13])
     chart.x_labels = map(str, range(5))
     return chart.render_response()
Example #4
0
 def test_box():
     chart = Box()
     chart.js = ('http://l:2343/2.0.x/pygal-tooltips.js',)
     chart.box_mode = '1.5IQR'
     chart.add('One', [15, 8, 2, -12, 9, 23])
     chart.add('Two', [5, 8, 2, -9, 23, 12])
     chart.add('Three', [8, -2, 12, -5, 9, 3])
     chart.add('Four', [5, 8, 2, -9, -3, 12])
     chart.add('Five', [8, 12, 12, -9, 5, 13])
     chart.x_labels = map(str, range(5))
     return chart.render_response()
Example #5
0
 def test_box():
     chart = Box()
     # chart.js = ('http://l:2343/2.0.x/pygal-tooltips.js',)
     chart.box_mode = '1.5IQR'
     chart.add('One', [15, 8, 2, -12, 9, 23])
     chart.add('Two', [5, 8, 2, -9, 23, 12])
     chart.add('Three', [8, -2, 12, -5, 9, 3])
     chart.add('Four', [5, 8, 2, -9, -3, 12])
     chart.add('Five', [8, 12, 12, -9, 5, 13])
     chart.x_labels = map(str, range(5))
     return chart.render_response()
Example #6
0
 def test_box():
     chart = Box()
     chart.js = ("http://l:2343/2.0.x/pygal-tooltips.js",)
     chart.box_mode = "1.5IQR"
     chart.add("One", [15, 8, 2, -12, 9, 23])
     chart.add("Two", [5, 8, 2, -9, 23, 12])
     chart.add("Three", [8, -2, 12, -5, 9, 3])
     chart.add("Four", [5, 8, 2, -9, -3, 12])
     chart.add("Five", [8, 12, 12, -9, 5, 13])
     chart.x_labels = map(str, range(5))
     return chart.render_response()