示例#1
0
    def test_dot():
        dot = Dot(logarithmic=True)
        dot.x_labels = map(str, range(4))
        dot.add('a', [1, lnk(3, 'Foo'), 5, 3])
        dot.add('b', [2, -2, 0, 2, .1])
        dot.add('c', [5, 1, 50, lnk(3, 'Bar')])
        dot.add('d', [-5, 5, lnk(0, 'Babar'), 3])

        return dot.render_response()
示例#2
0
文件: tests.py 项目: wuzesheng/pygal
    def test_dot():
        dot = Dot()
        dot.x_labels = map(str, range(4))
        dot.add('a', [1, lnk(3, 'Foo'), 5, 3])
        dot.add('b', [2, 2, 0, 2])
        dot.add('c', [5, 1, 5, lnk(3, 'Bar')])
        dot.add('d', [5, 5, lnk(0, 'Babar'), 3])

        return dot.render_response()
示例#3
0
    def test_dot():
        dot = Dot(logarithmic=True)
        dot.x_labels = map(str, range(4))
        dot.add('a', [1, lnk(3, 'Foo'), 5, 3])
        dot.add('b', [2, -2, 0, 2, .1])
        dot.add('c', [5, 1, 50, lnk(3, 'Bar')])
        dot.add('d', [-5, 5, lnk(0, 'Babar'), 3])

        return dot.render_response()
示例#4
0
文件: tests.py 项目: Bouska/pygal
    def test_dot():
        dot = Dot()
        dot.x_labels = map(str, range(4))
        dot.add('a', [1, lnk(3, 'Foo'), 5, 3])
        dot.add('b', [2, 2, 0, 2])
        dot.add('c', [5, 1, 5, lnk(3, 'Bar')])
        dot.add('d', [5, 5, lnk(0, 'Babar'), 3])

        return dot.render_response()
示例#5
0
    def test_dot():
        dot = Dot(logarithmic=True)
        dot.x_labels = map(str, range(4))
        dot.add("a", [1, lnk(3, "Foo"), 5, 3])
        dot.add("b", [2, -2, 0, 2, 0.1])
        dot.add("c", [5, 1, 50, lnk(3, "Bar")])
        dot.add("d", [-5, 5, lnk(0, "Babar"), 3])

        return dot.render_response()
示例#6
0
文件: tests.py 项目: Cortana-/pygal
    def test_dot():
        dot = Dot()
        dot.x_labels = map(str, range(4))
        dot.add("a", [1, lnk(3, "Foo"), 5, 3])
        dot.add("b", [2, 2, 0, 2])
        dot.add("c", [5, 1, 5, lnk(3, "Bar")])
        dot.add("d", [5, 5, lnk(0, "Babar"), 3])

        return dot.render_response()