Skip to content
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

HTML/Svg Content over treemap boxes #7267

Closed
HolyOne opened this issue Nov 9, 2024 · 2 comments
Closed

HTML/Svg Content over treemap boxes #7267

HolyOne opened this issue Nov 9, 2024 · 2 comments

Comments

@HolyOne
Copy link

HolyOne commented Nov 9, 2024

Hello, I am trying to add responsive html/svg contents to treemap boxes. Like a background picture and a title+link

It does not seem possible with plotly. so I tried css approach but there is no way to select the .slice.cursor-pointer or the underlying surface because they dont have the data-id s associated with the underlying data.

Can you add some functionality to add id's to them so we can style with css?
Or can you provide a way to add html content on them?

@HolyOne
Copy link
Author

HolyOne commented Nov 9, 2024

I also tried to add some customdata, it either dont work or the documentation is missing on how to grab those custom data. I mean I expected customdata to add data-something to the html tags of boxes.

I think treemap should provide a render() function that sends width, height, id, label of the content to a function, and use its return value to paint its contents.

@HolyOne HolyOne changed the title HTML Content over treemap boxes HTML/Svg Content over treemap boxes Nov 9, 2024
@gvwilson
Copy link
Contributor

Hi - we are tidying up issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. For tech support and "how-to" questions, please post in our community forum https://community.plotly.com/. Thank you - @gvwilson

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