コード例 #1
0
ファイル: tests.py プロジェクト: wuzesheng/pygal
 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()
コード例 #2
0
ファイル: tests.py プロジェクト: ChaliZhg/pygal
 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()
コード例 #3
0
ファイル: tests.py プロジェクト: Cortana-/pygal
 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()
コード例 #4
0
ファイル: tests.py プロジェクト: fredtantini/pygal
 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()
コード例 #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()
コード例 #6
0
ファイル: tests.py プロジェクト: rnjdeltaYoda/pygal
 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()