go-echarts / go-echarts

🎨 The adorable charts library for Golang

Home Page:https://go-echarts.github.io/go-echarts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not show bar3D

Jackhsu12x opened this issue · comments

Uncaught TypeError: Cannot read properties of undefined (reading 'util')
at Object. (echarts-gl.min.js:1:1727)
at t (echarts-gl.min.js:1:385)
at Object. (echarts-gl.min.js:1:272294)
at t (echarts-gl.min.js:1:385)
at Object. (echarts-gl.min.js:1:268824)
at t (echarts-gl.min.js:1:385)
at Object. (echarts-gl.min.js:1:268417)
at t (echarts-gl.min.js:1:385)
at echarts-gl.min.js:1:742
at echarts-gl.min.js:1:753
(anonymous) @ echarts-gl.min.js:1
t @ echarts-gl.min.js:1
(anonymous) @ echarts-gl.min.js:1
t @ echarts-gl.min.js:1
(anonymous) @ echarts-gl.min.js:1
t @ echarts-gl.min.js:1
(anonymous) @ echarts-gl.min.js:1
t @ echarts-gl.min.js:1
(anonymous) @ echarts-gl.min.js:1
(anonymous) @ echarts-gl.min.js:1
(anonymous) @ echarts-gl.min.js:1
(anonymous) @ echarts-gl.min.js:1
bar3d.html:27 Uncaught ReferenceError: action_fBRGAQrmHEJT is not defined
at bar3d.html:27:41
(anonymous) @ bar3d.html:27
bar3d.html:41 Uncaught ReferenceError: action_VRpSiwRaOMqC is not defined
at bar3d.html:41:41
(anonymous) @ bar3d.html:41
bar3d.html:55 Uncaught ReferenceError: action_qNYmfhfvnTEQ is not defined
at bar3d.html:55:41
(anonymous) @ bar3d.html:55
bar3d.html:69 Uncaught ReferenceError: action_UlefdEWkOTAD is not defined
at bar3d.html:69:41

Hi @Jackhsu12x , As per to the echarts-gl.min.js doesn't support the newer echarts version which we upgrade to v5.4.3.
The workaround is downgrade the echarts version to 4.x.
Sorry for the inconvenient, we will do the compatibility asap.


  • On page usage
        page := components.NewPage()
	page.AssetsHost = "#invalid"
	page.AddCustomizedJSAssets("https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js")
	page.AddCustomizedJSAssets("https://go-echarts.github.io/go-echarts-assets/assets/echarts-gl.min.js")
  • On single chart usage
	scatter3d := charts.NewScatter3D()
	scatter3d.AssetsHost = "#invalid"
	scatter3d.AddCustomizedJSAssets("https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js")
	scatter3d.AddCustomizedJSAssets("https://go-echarts.github.io/go-echarts-assets/assets/echarts-gl.min.js")

Plz use go-echarts v2.3.0 to check whether it works or not.

solved in v2.3.x.