在android上使用ECharts

参考: https://www.jianshu.com/p/5783daf54f5b?utm_campaign=maleskine

需要下载 echarts.min.js文件
可以参考:
https://blog.csdn.net/weixin_44223088/article/details/105403380


2021年2月8日更新
在实际真机测试过程中 发现上述方式实现的图表在部分安卓手机端显示会有无法显示的问题,调试过了 都没问题 ,怀疑是echart底层的问题对某些安卓手机支持的不够好 。
可以采用MPAndroidChart来实现。具体可以参考https://blog.csdn.net/weixin_43344890/article/details/103007183

另外这个文档中的依赖需要更改为3.0.3版本的才可以正常运行,即

implementation ‘com.github.PhilJay:MPAndroidChart:v3.0.2’
要改成
implementation ‘com.github.PhilJay:MPAndroidChart:v3.0.3’

猜你喜欢

转载自blog.csdn.net/weixin_44825473/article/details/112603033