echarts使用3D时报错Error: Component series.surface not exists. Load it first.

这是因为还需要依赖echarts-gl 

解决方法:

npm install echarts-gl -S

安装后在使用的页面引入

import 'echarts-gl'


版权声明:本文为RubyLinT原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。