我希望为类别添加包装标签。Plotly在我想要换行的地方显示空格。当字符串变得太长时,它只会以45度角显示它们。
我正在使用Shiny/R。
plot_ly(x =c("this\nand\nthat\nand\nall\nof\nthe\nthings",
"the\nother\nstring\nthat\nmakes\nthis\nway\ntoo\nlong"),
y = c(1,2), name = "testing",type = "bar")
我正在使用Shiny/R。
(5/4 * 字号 * 最大文本行数)
像素。 - hedgedandlevered