【发布时间】:2016-10-03 03:15:18
【问题描述】:
我在一个闪亮的应用程序中有一些 googleVis 图表,但是当它们太长时,googleVis 默认会缩短横轴上的标签。如何防止这种行为?下面的示例复制了我想要阻止的行为:
df=data.frame(country=c(paste(rep("very very long label", 1e+2)), "GB", "BR"),
val1=c(10,13,14),
val2=c(23,12,32))
Line <- gvisLineChart(df)
plot(Line)
文档的链接是here
【问题讨论】:
-
整体
height和chartArea.height都有configuration options -- 建议同时设置,减少chartArea.height直到完全显示 -- 还要检查hAxis.slantedText和hAxis.slantedTextAngle。 ..
标签: r google-visualization googlevis