Reference error: ecarts is not defined

Error in using ecarts gradient chart:

https://echarts.apache.org/examples/zh/editor.html?c=area-stack-gradient

 

There are also many questions on the Internet

https://segmentfault.com/q/1010000012329890

 

This is the main sentence

color: new echarts.graphic.LinearGradient

New is wrong

 

I changed it to this:

There is no mistake

 

 


Read More: