-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Can width and height of graph output be controlled? #125
Comments
Cool, and thanks for answering so quickly! I'd suggest to add |
Realized that a document wide setting can easily be achieved with css: .qwebr-output-graph-area {
width:100%;
} |
@ute I like that solution even more! I forgot that we recently added CSS classes across all elements: https://quarto-webr.thecoatlessprofessor.com/qwebr-theming.html#css-class-and-id-identifiers As we're entering a bit of uncharted territory, one thing to keep in mind is we need to account for a 2x scaling approach with https://docs.r-wasm.org/webr/latest/plotting.html#plotting-with-a-html-canvas Also, if you want to explore the non-interactive cells working with the packages key, then you'll be happy to know I just pushed a set of changes that should make them more robust in terms of sequencing and use of the quarto add coatless/quarto-webr@cell-state-manager |
Yes, these classes are so useful - no longer hacking internal files... very smart addition 😊 |
What's your question?
Is there a way to set the width and / or height of graph output somehow?
For my web book project, the default canvas width 700px seems always too large. I patched
qwebr-compute-engine.js
and replaced"700px"
with"100%"
, which works fine. Could I have done this from within the quarto document?Thank you so much for this fantastic extension, and I am thrilled with the new possibilities to install packages in a hidden
context: setup
cell 👍👍👍The text was updated successfully, but these errors were encountered: