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

set axis min max value

robertcharette opened this issue · comments

In a scatter3d chart, how can you specify minimum and maximum values for each of x, y and z axis ?

Hi @robertcharette , you could config the Min and Max in each Axis.

	scatter3d := charts.NewScatter3D()
	scatter3d.SetGlobalOptions(
		charts.WithXAxis3DOpts(opts.XAxis3D{
			Show: true,
			Name: "3DXAxisWithMinAndMax",
			Min:  10,
			Max:  100000,
		}),
	)