安装和使用
npm install echarts --save
const echarts = require("echarts")
require("echarts/map/js/china") // geo map是china时
require("echarts/extension/bmap/bmap") // 很关键 使用geo 出现地图的
let myChart = echarts.init(document.getElementById("j_map"));
...
npm install echarts --save
const echarts = require("echarts")
require("echarts/map/js/china") // geo map是china时
require("echarts/extension/bmap/bmap") // 很关键 使用geo 出现地图的
let myChart = echarts.init(document.getElementById("j_map"));
...