Layuiadmin echarts found in some old version of echarts which have been updated:
Echarts query the current version:
console.log(echarts.version);
1. Go to the official website to download the latest echarts echarts file,
If you are from GitHub up and down, (I was under the 4.2.1 version here)
Echarts.min.js file can be found in the incubator-echarts-4.2.1 \ dist folder
2. Rename the file to echarts.js
3. Copy the file to layuiAdmin->> lib-> under src- extend, replace the old version echarts
4. Open the file in the file together with the bottommost
layui.define('echartsTheme',function(exports){exports('echarts',echarts)});
5. save it
Because layuiadmin in the config.js
I have joined
Extend: [ 'echarts', // echarts core package 'echartsTheme' // echarts theme ]
So you do not have to configure additional