0
我有以下D3的圖表,但網格線走出圖表 https://jsfiddle.net/ou28se1z/1/D3我想要的網格線溢出將被隱藏
//Define the X axis
//Define the Y axis
var yAxis = d3.svg.axis()
.scale(yScale)
.innerTickSize(-w)
.outerTickSize(0)
.orient("left")
.ticks(5);
var xAxis = d3.svg.axis()
.scale(xScale)
.orient("bottom")
.innerTickSize(-h)
.outerTickSize(0)
.ticks(10);
我認爲它涉及到innerTickSize財產