在Vue中使用echarts

  1. 下载echarts模块(可以直接在package.json写进去,直接yarn装下依赖)在Vue中使用echarts

  2. main.js引入echarts在Vue中使用echarts

  3. 组件中使用echarts(必须先要在template里面先给一个div)在Vue中使用echarts

最后,在页面中展示的效果

在Vue中使用echarts

相关文章: