Skip to content Skip to sidebar Skip to footer

D3js Svg Viewbox Attribute

I am appending an svg to my div and applying a viewBox attribute of '0 0 100% 100%'. My console is stating an error from d3.js. Error: Invalid value for attribute viewB

Solution 1:

a valid viewBox must consist of 4 numbers separated by whitespace and/or comma. Percentages are not allowed.


Post a Comment for "D3js Svg Viewbox Attribute"