实现可视化的一般方式:
-服务器端处理:pyecharts
-后端负责给数据,前端拿到数据,自己渲染:echarts
about
Echarts
Echarts是一个非常优秀的可视化框架,由百度开源,提供了非常丰富的图表类型。
Github地址:https://github.com/apache/incubator-echarts官网地址:echartsjs.com/zh/index.html
用过echarts的同学都知道,它提供了一个叫setOptions的方法,通过这个方法我们传入一个options就可以生成一个图表了。
对开发者而言,这是非常方便的,我们只需维护这个options变量就OK了。
pyecharts
pyecharts是一款将echarts封装到python中的一款开源框架,由国内几个大哥写的,源码拜读了些许,感觉封装的很有层次感,pythonic十足。
Github地址: https://github.com/pyecharts/pyecharts官网地址: https://pyecharts.org/#/zh-cn/
示例
在视图函数中处理好相关数据:
然后前端调用:
效果:
实现可视化的一般方式:
-服务器端处理:pyecharts
-后端负责给数据,前端拿到数据,自己渲染:echarts
about
Echarts
Echarts是一个非常优秀的可视化框架,由百度开源,提供了非常丰富的图表类型。
Github地址:https://github.com/apache/incubator-echarts官网地址:echartsjs.com/zh/index.html
用过echarts的同学都知道,它提供了一个叫setOptions的方法,通过这个方法我们传入一个options就可以生成一个图表了。
对开发者而言,这是非常方便的,我们只需维护这个options变量就OK了。
pyecharts
pyecharts是一款将echarts封装到python中的一款开源框架,由国内几个大哥写的,源码拜读了些许,感觉封装的很有层次感,pythonic十足。
Github地址: https://github.com/pyecharts/pyecharts官网地址: https://pyecharts.org/#/zh-cn/
示例
在视图函数中处理好相关数据:
然后前端调用:
效果: