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

Resizing needle plot #545

Closed
priesgo opened this issue Feb 26, 2021 · 2 comments · Fixed by #579
Closed

Resizing needle plot #545

priesgo opened this issue Feb 26, 2021 · 2 comments · Fixed by #579

Comments

@priesgo
Copy link

priesgo commented Feb 26, 2021

I would like to resize the needle plot so I can make it arbitrarily wide. The default size is a bit smaller than a third of my screen size and considering the legend it is too small to provide a good user experience.

PS: apologies if this is not the right channel to communicate such requirements

@alexcjohnson
Copy link
Collaborator

This would be a very nice addition - width and height props are the obvious ones, it could also be useful to include a way to override the plot config so you could turn on responsive mode and have the plot get its size from its container.

This would be a straightforward addition if you or anyone else is interested in making a PR - a couple new props added to https://github.com/plotly/dash-bio/blob/master/src/lib/components/NeedlePlot.react.js and piped through to the plot in https://github.com/plotly/dash-bio/blob/master/src/lib/fragments/NeedlePlot.react.js

@priesgo
Copy link
Author

priesgo commented Oct 6, 2021

Thanks @nickmelnikov82 !

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

Successfully merging a pull request may close this issue.

2 participants