我在R-Shiny仪表板中放置了一个漏斗,但是我无法更改标签的格式。 特别是我不想使用“ k”,而是使用“,”作为数字的十进制。 所以我想要的是:103.200而不是103.20k。
这是我的代码:
p <- plot_ly() %>%
add_trace(
type = "funnel",
y = temp$description,
x = temp$value,
textposition = "inside",
marker = list(color = c('#006666', "#dc002e", "#f8b322"))) %>%
layout(yaxis = list(categoryarray = c("Click", "Visitors", "Purchase")))
p