문제

I am using the scatterplot matrix example in d3.js. I have successfully used it with my data. However I noticed that when I use the mouse crosshairs to begin selection of an area to highlight the points within, the start point of the selection region is offset from where I click. How do I fix this? Here is a link and a screenshot for the example http://bl.ocks.org/mbostock/4063663:

enter image description here

도움이 되었습니까?

해결책

Just checked on Mozilla and found that the following property in the main file

svg {
    font: 10px sans-serif;
    padding: 10px;
}

changing padding to 0px make the code run happily. If you need padding, you may add margin as a workaround.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top