コード例 #1
0
    def test_config():
        class LolConfig(Config):
            js = ['http://l:2343/2.0.x/pygal-tooltips.js']

        stacked = StackedBar(LolConfig())
        stacked.add('', [1, 2, 3])
        stacked.add('My beautiful serie of 2019', [4, 5, 6])
        return stacked.render_response()
コード例 #2
0
ファイル: tests.py プロジェクト: Kozea/pygal
    def test_config():
        class LolConfig(Config):
            js = ['http://l:2343/2.0.x/pygal-tooltips.js']

        stacked = StackedBar(LolConfig())
        stacked.add('', [1, 2, 3])
        stacked.add('My beautiful serie of 2019', [4, 5, 6])
        return stacked.render_response()
コード例 #3
0
ファイル: tests.py プロジェクト: Cortana-/pygal
    def test_config():
        class LolConfig(Config):
            js = ["http://l:2343/svg.jquery.js", "http://l:2343/pygal-tooltips.js"]

        stacked = StackedBar(LolConfig())
        stacked.add("1", [1, 2, 3])
        stacked.add("2", [4, 5, 6])
        return stacked.render_response()
コード例 #4
0
ファイル: tests.py プロジェクト: arthru/pygal
    def test_config():

        class LolConfig(Config):
            js = ['http://l:2343/svg.jquery.js',
                  'http://l:2343/pygal-tooltips.js']

        stacked = StackedBar(LolConfig())
        stacked.add('1', [1, 2, 3])
        stacked.add('2', [4, 5, 6])
        return stacked.render_response()
コード例 #5
0
ファイル: tests.py プロジェクト: pebermyntelars/pygal
 def test_bar_print_values_position():
     bar = StackedBar(print_values=True, print_values_position='top', zero=2,
               style=styles['default'](
                   value_font_family='googlefont:Raleway',
                   value_font_size=46))
     bar.add('1', [1, -2, 3])
     bar.add('2', [4, -5, 6])
     bar.x_labels = [2, 4, 6]
     bar.x_labels_major = [4]
     return bar.render_response()
コード例 #6
0
ファイル: tests.py プロジェクト: rnjdeltaYoda/pygal
 def test_bar_print_values_position():
     bar = StackedBar(
         print_values=True,
         print_values_position="top",
         zero=2,
         style=styles["default"](value_font_family="googlefont:Raleway", value_font_size=46),
     )
     bar.add("1", [1, -2, 3])
     bar.add("2", [4, -5, 6])
     bar.x_labels = [2, 4, 6]
     bar.x_labels_major = [4]
     return bar.render_response()
コード例 #7
0
ファイル: tests.py プロジェクト: fredtantini/pygal
 def test_stacked_reverse():
     stacked = StackedBar(stack_from_top=True)
     stacked.add('1', [1, 2, 3])
     stacked.add('2', [4, 5, 6])
     return stacked.render_response()
コード例 #8
0
ファイル: tests.py プロジェクト: wuzesheng/pygal
 def test_stacked_reverse():
     stacked = StackedBar(stack_from_top=True)
     stacked.add('1', [1, 2, 3])
     stacked.add('2', [4, 5, 6])
     return stacked.render_response()
コード例 #9
0
ファイル: tests.py プロジェクト: wuzesheng/pygal
 def test_stacked():
     stacked = StackedBar()
     stacked.add('1', [1, 2, 3])
     stacked.add('2', [4, 5, 6])
     return stacked.render_response()
コード例 #10
0
ファイル: tests.py プロジェクト: andreasnuesslein/pygal
 def test_stacked():
     stacked = StackedBar()
     stacked.add('1', [1, 2, 3])
     stacked.add('2', [4, 5, 6])
     return stacked.render_response()