javascript - D3JS SVG Viewbox Attribute -
i appending svg div , applying viewbox attribute of '0 0 100% 100%'. console stating error d3.js.
error: invalid value <svg> attribute viewbox="0 0 100% 100%" here snippet code
d3.select("#chart") .append("svg") .attr("viewbox", "0 0 100% 100%"); is using percentages in viewbox attribute allowed?
a valid viewbox must consist of 4 numbers separated whitespace and/or comma. percentages not allowed.
javascript svg d3.js
No comments:
Post a Comment