question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Request] Allow `customdata` attribute to be accessed by `hovertemplate` using `sankey`,

See original GitHub issue

I 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.

CC: @alb-erandelcastillo

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
antoinergcommented, Oct 2, 2019

So perhaps, we could expose two customdata attributes: one inside the node container and one inside the link container - similar to how we currently expose node.hovertemplate and link.hovertemplate.

This proposal makes a whole lot of sense. 👍

1reaction
mtwichancommented, Mar 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found