-1
을 전설의 위치를 변경하는어떻게 차트의 상단에있는 전설을 이동하려면 분산 형 차트에 D3.js
내가 상대 CSS 위치를 사용하지만 SVG에서 작동하지 않는 것으로 보인다 시도codepen
var legend = svg.selectAll(".legend")
.data(color.domain())
.enter().append("g")
.attr("class", "legend")
.attr("transform", function(d, i) { return "translate(0," + i * 20 + ")"; });
http://codepen.io/7deepakpatil/pen/LkaKoy
에서 참조하시기 바랍니다 것은 위의 전설이 생성되는 코드입니다.CSS를 사용하거나 가능하면 d3 또는 JS 방식으로 문제를 해결하십시오.