[Request] Allow `customdata` attribute to be accessed by `hovertemplate` using `sankey`,
See original GitHub issueI am/was giving a workshop to an enterprise customer where they want the ability/flexibility to be able to pass in multiple sets of external metadata to customdata
, that can be than used by hovertemplate
for the sankey
graph.
We tried using customdata
from the top level data
property, but were not able to access it. Currently hovertemplate
can only access whatever is within it’s scope, e.g node
or link
. And, it can only take in one data set (list
data structure). This could be helpful for other graph types as well.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Sankey hovertemplate with customdata - plotly.js
Hi there, I am trying to set up a Sankey graph where the nodes have a customised hover tooltip using the hovertemplate attribute....
Read more >add custom data in hovertemplate (plotly, shiny, r)
I would like to modify the label of a plotly-sankey diagram in a shiny app. For example, I want to display 1/10 of...
Read more >Brick by Brick: Build a multi-page dashboard (Sankey diagrams)
In the Sankey chart, each link shows number of a certain property type in a ... using a combination of “customdata” and “hovertemplate”....
Read more >How To Add Customdata To 'Name' Attribute In Plotly.Js
[Request] Allow customdata attribute to be accessed by hovertemplate using sankey #4243.Closed.mtwichan opened this issue on Oct 1 2019 6 comments.
Read more >PlotlyWidget.add_image
PlotlyWidget. add_image (colormodel=None, customdata=None, ... hovertemplate – Template string used for rendering the information that appear on hover box.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This proposal makes a whole lot of sense. 👍
If it’s not a complicated feature to implement it’d be great to have. This issue has come up for myself as a Dash/Plotly user many times, for users in the community forums (https://community.plot.ly/t/sankey-diagram-customize-tooltip/11487), users at a workshop I gave (for a paying customer - this issue), and now as a feature addition to a POC we’re trying to present to sway a client to get DE (https://github.com/plotly/dash-customer-success/issues/248).
I’d say it’s urgent in the sense that it could be useful for all the above reasons. But it’s not urgent in the sense that no one is paying for it. Up to you @antoinerg.