-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Allow viewport units for font.size
?
#3420
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
Comments
font.size
?
I think a very useful unit for viewBox in action: https://codepen.io/antoinerg/pen/Ezpdmz |
Would agree with @antoinerg and just add my vote as this is currently the most difficult thing about working with Plotly for me. I have a requirement to be able to resize Plotly within a div, so viewport units will not work for my case and font that scales to the actual size of the plot would be awesome. Right now I'm working around this by listening to the div resize event and manually rescaling the font, but it's pretty inefficient because it requires a lot of rerendering of an expensive element. |
I had to implement this in javascript too, both for font sizes and for line widths. |
hi joshrabinowitz |
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 |
Currently I can set a header such as
html.H1('Test', style={'font-size': '2vw'})
, etc. to scale with the viewport width. However, when I attempt to do the same with adcc.Graph
annotation, I receive the following error:Is there a plan to implement viewport units as a valid option? Or is there a current acceptable work-around for this implementation? When I scale my viewport down to half my screen (width-wise), my text annotations tend to dominate my graphs, which is not desirable.
Here is the associated SO question I've posted: https://stackoverflow.com/q/53951814/8146556
Here is the associated Plotly-Dash forum question I've posted: https://community.plot.ly/t/font-size-for-dcc-graph-annotations-do-not-accept-viewport-units/17423?u=rahlf23
The text was updated successfully, but these errors were encountered: