gpt4 book ai didi

json - 在 googleVis 气泡图中隐藏标签

转载 作者:行者123 更新时间:2023-12-04 12:22:40 24 4
gpt4 key购买 nike

我想隐藏标签。我相信这与选项有关 bubble.textStyle并将颜色设置为 none但我想不通。

Bubble <- gvisBubbleChart(Fruits, idvar="Fruit", xvar="Sales", yvar="Expenses",
colorvar="Year", sizevar="Profit",
options=list(hAxis='{minValue:75, maxValue:125}',
width=500, height=300))
plot(Bubble)

谢谢..

最佳答案

棘手的是它是一个 JSON 对象内的 JSON 对象。首先你使用 bubble="{}创建第一个 JSON 对象,然后创建 textStyle:{}bubble="{} 中创建下一个 JSON 对象.

这是我的代码和屏幕截图,

# install.packages("googleVis", dependencies = TRUE)
require(googleVis)

Bubble <- gvisBubbleChart(Fruits, idvar="Fruit", xvar="Sales", yvar="Expenses",
colorvar="Year", sizevar="Profit",
options=list(hAxis='{minValue:75, maxValue:125}',
width=500, height=300),
bubble="{textStyle:{color: 'none', fontName:
<global-font-name>, fontSize:
<global-font-size>}}")
plot(Bubble)

enter image description here

关于json - 在 googleVis 气泡图中隐藏标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14431082/

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