本文流程: 1.安裝插件→2.引入Echarts→3.創建圖表→4.修改樣式→5.接入數據 一.安裝插件 方法一:npm安裝Echarts npm install echarts -S 方法二:cnpm安裝Echarts 1.首先我們需要安裝cnpm npm install -g