gvisScatterChart - hAxis.title 和 vAxis.title 未出现在图上
gvisScatterChart - hAxis.title and vAxis.title not appearing on the plot
hAxis.title
和 vAxis.title
选项似乎没有为包 googleVis
.
中的 gvisScatterChart
设置轴标题
plot(gvisScatterChart(data.frame(x = 3, y = 4), options=list(hAxis.title = 'foo')))
"foo" 没有显示为横轴标题。
您应该以字典形式的 JSON
对象格式将选项传递给 hAxis
:
plot(gvisScatterChart(data.frame(x = 3, y = 4), options=list(hAxis="{title:'foo'}")))
请参阅 help page 底部的示例以及 hAxis
下的示例:
a JSON object. Default null
. An object with members to configure various horizontal axis elements. To specify properties of this object, you can use object literal notation, as shown here:
{title: 'Hello', titleTextStyle: {color: '#FF0000'}}
hAxis.title
和 vAxis.title
选项似乎没有为包 googleVis
.
gvisScatterChart
设置轴标题
plot(gvisScatterChart(data.frame(x = 3, y = 4), options=list(hAxis.title = 'foo')))
"foo" 没有显示为横轴标题。
您应该以字典形式的 JSON
对象格式将选项传递给 hAxis
:
plot(gvisScatterChart(data.frame(x = 3, y = 4), options=list(hAxis="{title:'foo'}")))
请参阅 help page 底部的示例以及 hAxis
下的示例:
a JSON object. Default
null
. An object with members to configure various horizontal axis elements. To specify properties of this object, you can use object literal notation, as shown here:
{title: 'Hello', titleTextStyle: {color: '#FF0000'}}