go-charts icon indicating copy to clipboard operation
go-charts copied to clipboard

请教下如何展示所有点的值呢,是不是现在只支持设置MarkPoint为max/min/average

Open liuyke opened this issue 3 years ago • 7 comments

liuyke avatar Sep 15 '22 13:09 liuyke

是指每个点上显示其具体的值这样吗?

vicanso avatar Sep 16 '22 00:09 vicanso

是的

liuyke avatar Sep 19 '22 02:09 liuyke

柱状图支持,是希望在哪个类型的图要展示?

vicanso avatar Sep 19 '22 12:09 vicanso

image 想在折线图上支持

liuyke avatar Sep 22 '22 10:09 liuyke

main分支最新代码可以可以label是否展示,代码如下:

func(opt *charts.ChartOption) {
	opt.Legend.Padding = charts.Box{
		Top:    5,
		Bottom: 10,
	}
	opt.SeriesList[0].Label.Show = true
},
image

vicanso avatar Sep 22 '22 12:09 vicanso

@liuyke 最新版本已支持每个点显示其数值

vicanso avatar Sep 24 '22 02:09 vicanso

感谢感谢

liuyke avatar Oct 11 '22 06:10 liuyke

非常感谢,正好需要这个功能

MenciusCheng avatar Mar 17 '23 10:03 MenciusCheng