pyecharts/test/test_funnel.py
陈键冬 8f16369400 Charts docs update and pink everything (#536)
* Update: docs update

* Update: 统一注释文档风格

* Update: pink echarts folder

* Update: pink charts folder

* Update: pink custom folder

* Update: pink pyecharts and dataset folder

* Update: pink test folder

* Update: pink utils folder

* Update: micro docs update for theme

* Fix: fixed broken test
2018-05-04 22:37:27 +08:00

36 lines
740 B
Python

#!/usr/bin/env python
# coding=utf-8
from __future__ import unicode_literals
from pyecharts import Funnel
from test.constants import CLOTHES
prices = [20, 40, 60, 80, 100, 120]
def test_funnel_labelpos_inside():
funnel = Funnel("漏斗图示例")
funnel.add(
"商品",
CLOTHES,
prices,
is_label_show=True,
label_pos="inside",
label_text_color="#fff",
)
funnel.render()
def test_funnel_other_style():
funnel = Funnel("漏斗图示例", title_pos="center")
funnel.add(
"商品",
CLOTHES,
prices,
is_label_show=True,
label_pos="outside",
legend_orient="vertical",
legend_pos="left",
)
funnel.render()