效果展示
Python代码
import json
from pyecharts import Pie
f = open('pies.json', encoding='gbk')
data = json.load(f)
print(data)
name = data['name']
sales = data['sales']
sales_volume = data['sales_volume']
print(name, sales, sales_volume)
pie = Pie('', wi
相关介绍就不多说了,有兴趣可以看看网站:https://aistudio.baidu.com/aistudio/education/group/info/1224
今天的任务是制作饼状图
详细请参见代码 :
import numpy as np
import matplotlib.pyplot as pyplot
#获取Json
with open('data/data31557/20200422.json', 'r', encoding='UTF-8') as file: