Travel Tips
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
使用Python中的pyecharts库读取json文件绘制Bar3D
```python import json from pyecharts import Bar3D f = open('bar3ds.json', encoding='gbk') data = json.load(f) x_axis = data['x_axis'] y_axis = data['y_axis'] range_color = data['range_color'] data = data['data'] bar3d = Bar3D('3D柱状图', width=2000, height=2000) bar3d.add('', x_axis, y_axis, [[d[1], d[0], d[2]] for d in data], is_visualmap=True, visual_range=[0, 20], visual_range_color=range_color) bar3d.render('bar3d.html') ```
* 注数据文件链接: https://pan.baidu.com/s/1pU16WlRJcx_xiLZwJ8iqDw 密码: cihh
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