Skip to content

HTML abbr Support #2515

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
Kolano opened this issue Mar 30, 2018 · 4 comments
Closed

HTML abbr Support #2515

Kolano opened this issue Mar 30, 2018 · 4 comments
Labels
feature something new

Comments

@Kolano
Copy link

Kolano commented Mar 30, 2018

Plotly supports various HTML tags in text fields. One useful omitted tag is abbr, used to provide explanations of abbreviated values / acronyms. For instance...
title: "Top <abbr title='Internet Protocol Addresses'>IPs<abbr>"
...which currently renders as plain text.

I work around this currently by overlaying separate HTML titles, but such are then absent from Plotly's PNG saves, which is not ideal.

@alexcjohnson alexcjohnson added the feature something new label Apr 2, 2018
@alexcjohnson
Copy link
Collaborator

Seems like a nice feature, sure. Looks like we'd have to do this in javascript though, as I don't see an equivalent functionality built into SVG. The <title> tag might have allowed this but doesn't seem browsers have adopted this as a tooltip-like display.

@Kolano
Copy link
Author

Kolano commented Apr 2, 2018

Perhaps a foreignObject element rather than text would allow more direct support of HTML markup? Though unclear how that would effect the image exports.

@alexcjohnson
Copy link
Collaborator

Right, due to image exports, and the desire to export SVG itself for use by Illustrator etc, we have avoided foreignObject elements. Anyway I suspect replicating this in javascript will not be terribly difficult.

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

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

No branches or pull requests

3 participants