Open vongomben opened 1 year ago
Hi @vongomben,
Due to a lack of free time, I cannot rework your example. But I think you should have a look at the viewbox. You have a drawing size of 800x2000, but your viewbox is "0 0 800 400", which means you only view a part of your drawing (i.e. 800x400 at location (0,0)).
Bart
Thanks for the help. I will try different proportions, but of I put the correct one the drawing becomes super tiny. Will try to post here a picture, away from keyboard at the moment. Thanks for now!
Ok. I've made some tests: Thanks for the link.
I've solved it like this
svg x="0" y="0" width="400" height="750" viewBox="0 0 400 800"
but the vidth / height value [1] from the documentation doesn't behave as expected
I was able to reach this solution witch suits me
[1] A width/height value of "100" means "100px"
@vongomben, Thanks for sharing your solution!
[1] A width/height value of "100" means "100px"
Ah yes, unitless numbers for SVG presentation attributes (like width, height, ...) are treated as px. I see in this StackOverflow discussion that they use 100%
instead of 100
.
The Svg node is the most interesting one I've been playing so far for creating custom visualizations (which is super requested and cool). In this case, I'm trying to visualize the weight of people using a smart sole.
I created the svg in inkscape, and successfully uploaded in the svg dashboard node. I'm uploading you just the dashabord nodes, and repeat here the code.
The problem is, that I'm totally unable to show the sole as central and zoomed in in the dashabord group. If I put proportioned dimensions, the sole is rendered not correctly (super tiny).
Any help?
Copy of svg here