Because we need to use the river map of echarts2, but we do not know how to use these two simultaneously.
Ask yourself, this is the way to solve it.
- Download echarts2-all.js
- Put it under the static folder
- index.htmlIntroducing the script label
- Open echarts2-all.js, select all echarts fields (note case sensitive), and change to echarts2.
- It can then be used directly by echarts2.init (DOM)
Link of this Article: How echarts3 and echarts2 are used in Vue at the same time