-
I append my plots with element.appentChild. This way the svg automatically gets the attributes height and width. I dont talk about This heavily interferes with scaling capabilities. In a grid it just doesn't fit and doesnt resize all the time.
Is there a way in Observable Plot to disable this auto svg attribute setting? Edit: With height / width attributes: After removing heigth / width attributes (what I want): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.