Skip to content

Remove width / height attribute from svg #728

Answered by mbostock
Emporea asked this question in Q&A
Discussion options

You must be logged in to vote

No, there is not. The top-level width and height options set both the width and height attributes and the viewBox. If you don’t want these attributes you’ll need to remove them yourself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants