Travel Tips
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
使用Python中的pyecharts库读取json文件绘制面积折线图
```python import json from pyecharts import Line f = open('lines.json', encoding='gbk') data = json.load(f) datas = data['date'] sales1 = data['sales1'] sales2 = data['sales2'] line = Line('面积折线图', width=2000) # area_opacity设置透明度 line.add('sales', datas, sales1, is_fill=True, area_opacity=0.4) line.add('sales2', datas, sales2, is_fill=True, area_opacity=0.8) line.render('area.html') ```
注:数据文件链接: https://pan.baidu.com/s/16hOA6AkWR_0wKCH-DtuA2Q 密码: p0wi
Sed ac lorem felis. Ut in odio lorem. Quisque magna dui, maximus ut commodo sed, vestibulum ac nibh. Aenean a tortor in sem tempus auctor
December 4, 2020 at 3:12 pm
Sed ac lorem felis. Ut in odio lorem. Quisque magna dui, maximus ut commodo sed, vestibulum ac nibh. Aenean a tortor in sem tempus auctor
December 4, 2020 at 3:12 pm
Donec in ullamcorper quam. Aenean vel nibh eu magna gravida fermentum. Praesent eget nisi pulvinar, sollicitudin eros vitae, tristique odio.
December 4, 2020 at 3:12 pm
我是 s enim interduante quis metus. Duis porta ornare nulla ut bibendum
Rosie
6 minutes ago