gpt4 book ai didi

c# - 谷歌饼图图例类型标记显示百分比

转载 作者:行者123 更新时间:2023-11-30 22:09:35 25 4
gpt4 key购买 nike

如何显示值而不是百分比图例类型标记的谷歌饼图我想在下面显示百分比而不是 100% 必须显示 1

 legend: {
position: 'labeled',
pieSliceText:"value"
},

enter image description here

最佳答案

legend 选项没有属性 pieSliceTextpieSliceText 是整个饼图的选项。似乎没有关闭 % in legend 的选项,但您可以使用以下方法完全关闭 legend:

      legend: {
position: 'none'
}

并构建您自己的。 How to add Percentage and Total on the Legend of Google Pie Charts 的回答中描述了它是如何完成的.您可以显示带有附加信息和样式的自己的文本。

关于c# - 谷歌饼图图例类型标记显示百分比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21472845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com