[英]Change information on hover of Plotly point
I'm using Plotly in R to make a scatter plot but currently when I hover over the point in my shiny app, the values corresponding to the x,y values appear. 例如 (19, 27.73k)。 但是,我想将其更改为也显示与该数据对应的列。 ex (USA, 19, 27.73k) 这可能吗? IDK(如果相关但当前标记代码)
mode="markers",
marker = list(
opacity = 0.5,
size = 5
)) %>%
您正在寻找的是hovertemplate
,可能与text
串联。 没有数据,很难准确生成您需要的内容,但您应该能够在https://plotly.com/r/hover-text-and-formatting/上找到它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.