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

[Notification] Current echarts.min.js assets version is v5.4.3.

Koooooo-7 opened this issue · comments

Notification

go-echarts hosts echarts assets updates.

Latest version: v5.4.3

Breaking in 3D charts and Liquid chart

💡 Fixed in go-echarts v2.3.x+

As per to the 3d and 3rd charts 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")