Skip to content

Custom point name issue [scatter3d] #3046

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
YaroslavTrubanov opened this issue Sep 25, 2018 · 5 comments
Closed

Custom point name issue [scatter3d] #3046

YaroslavTrubanov opened this issue Sep 25, 2018 · 5 comments

Comments

@YaroslavTrubanov
Copy link

Hello. As due to my inactivity issue #2884 was closed so i opened a new one.
Here is plotly example: https://plot.ly/~marcus1812/1/
My goal is to see only PointName as name of points of trace: "Overbooking & no shows".

what with mode: 'markers' you set hoverinfo: 'text+name'?

Its not working

Originally posted by @Marcus1812 in #2884 (comment)

@etpinard
Copy link
Contributor

Can you clarify what you mean by "PointName"?

@YaroslavTrubanov
Copy link
Author

@etpinard PointName is "MaxPrice", "LastPrice" and etc. You can see that with default hover (x: .. , y:.., z:..) i can set custom name for point, but with custom hover (Day:..,,Cap:...) i cant set custom point name, it copied all text. How can i get both custom PointName and PointHoverText?

@etpinard
Copy link
Contributor

... and what do you mean by "name for point"?

I think I know what you're looking for. In plotly.js lingo, you want:

  • per-point on-graph text
  • hover text that differs from the on-graph text

and here's an example of that: https://codepen.io/etpinard/pen/eLwaaW

@YaroslavTrubanov
Copy link
Author

@etpinard it is working now! the problem was in "hovertext" property, i did not set it. Thank you :)

@etpinard
Copy link
Contributor

Great.

Please use https://community.plot.ly/c/plotly-js for questions of the likes in the future.

Thank you.

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

No branches or pull requests

2 participants