Skip to content

Mesh3d hover text not shown #2242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Helsioufy opened this issue Jan 10, 2018 · 1 comment · Fixed by #2327
Closed

Mesh3d hover text not shown #2242

Helsioufy opened this issue Jan 10, 2018 · 1 comment · Fixed by #2327
Labels
bug something broken

Comments

@Helsioufy
Copy link

I was trying to draw a mesh3d with customized hover text in the below example:

https://codepen.io/Elsioufy/pen/JMLEmP

Yet the hover text did not appear to be shown in the graph. it is working with scatter3d and surface though.


var gd = document.getElementById('graph');

var x = [1, 1, 2, 3, 4, 2];
var y = [2, 1, 3, 4, 5, 3];
var z = [3, 7, 4, 5, 3.5, 2];

// fill in 'text' array for hover
var text = x.map((xi, i) => `
ts: ${xi}<br>
hz: ${y[i]}<br>
ftt: ${z[i]}`)

Plotly.plot(gd, [{
  type: 'mesh3d',
  text: text,
  hoverinfo: 'text',
  x: x,
  y: y,
  z: z,
  text: text,
}], {
  scene: {
    xaxis: { title: 'x'},
    yaxis: { title: 'y'},
    zaxis: { title: 'z'},
  }
});

no_text

@etpinard etpinard added the bug something broken label Jan 10, 2018
@alexcjohnson
Copy link
Collaborator

This trace also seems to suffer from misplaced hover ala #2208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants