0
d3에서 플롯 팅을 자르기 위해 내부 치수를 만들었습니다. 다음은 코드입니다.d3 크롬에서 svg 변환에 대한 해결 방법
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var nestedSVG = svg.append('svg')
.attr("width", innerWidth)
.attr("height", innerHeight)
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
이것은 파이어 폭스에서 잘 작동합니다. 그러나 크롬은이 같은 svg 변환을 지원하지 않는다는 것을 알았습니다 (크롬에서는 작동하지 않습니다). 중첩 된 SVG를 변형 할 수있는 해결 방법이 있습니까?
대신 "nestedSVG"를 div에 추가하지 않으시겠습니까? –