Skip to content

Commit 27903f1

Browse files
author
xuming06
committed
add pyechart.
1 parent ebc3c52 commit 27903f1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tool/pyechart_demo.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
@author:XuMing([email protected])
4+
@description:
5+
"""
6+
7+
from pyecharts import Bar
8+
9+
bar = Bar("我的第一个图表", "这里是副标题")
10+
bar.add("服装", ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"], [5, 20, 36, 10, 75, 90],is_more_utils=True)
11+
# bar.print_echarts_options() # 该行只为了打印配置项,方便调试时使用
12+
bar.render() # 生成本地 HTML 文件

0 commit comments

Comments
 (0)