plotly / plotly/react-plotly.js
Cannot change hover text by hovertemplate/hoverinfo/text/hovertemplate
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 138
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 4
描述
I am trying to change the hover text. However, this is no effect no matter how I set the data prop: hovertemplate / hoverinfo / text / hovertemplate. None of them work.
Here is the code:
<Plot
data={[
{
name: 'Target',
type: 'scatter3d',
mode: 'markers+text',
x: this.state.xValues,
y: this.state.yValues,
z: this.state.zValues,
marker: {color: "rgb(207, 190, 23)"},
hoverinfo: "all",
text: this.state.selectedStudentId,
hovertext: this.state.selectedStudentId,
},
]}
layout={{
autosize: true,
scene: {
height: 640,
title: 'Nearest Neighbor',
xaxis: {
title: this.state.selectedXAxis,
},
yaxis: {
title: this.state.selectedYAxis,
},
zaxis: {
title: this.state.selectedZAxis,
},
aspectratio: {
x: 1,
y: 1,
z: 1
},
camera: {
center: {
x: 0,
y: 0,
z: 0
},
eye: {
x: -2,
y: -2,
z: 1.25
},
up: {
x: 0,
y: 0,
z: 1
},
}
},
}}
/>

贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从显示的 React 入口点开始,使用列出的 hoverinfo、text、hovertext 和 hovertemplate props 重现 scatter3d 示例。将产生的 hover 行为与报告中的屏幕截图进行对照;完成的标准是确定请求的 hover 文本未被应用的原因,并通过一次聚焦的复现确认预期行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- data-visualization, frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100