7

ラベルを隠したい。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)

ありがとう..

4

1 に答える 1

5

トリッキーなことは、それがJSONオブジェクト内のJSONオブジェクトであるということです。最初にを使用bubble="{}して最初のJSONオブジェクトtextStyle:{}を作成し、次に内部に次のJSONオブジェクトを作成します bubble="{}

これが私のコードとスクリーンショットです、

# 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)

ここに画像の説明を入力してください

于 2013-01-21T03:30:21.107 に答える