使用Python中的pyecharts库读取json文件绘制折线图 柱状图
效果展示 Python代码 import json from pyecharts import Bar, Line, Overlap f = open('overlaps.json', encoding='gbk') data = json.load(f) date = data['date'] sales1 = data['sales1'] sales2 = data['sales2'] bar = Bar('line - bar') bar.add('line', date, sales1) line = Line('line') line.add('Line', date, sales
用户评论