Commit 393707d6 authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Fix clip path

parent 05e79875
...@@ -268,9 +268,9 @@ ...@@ -268,9 +268,9 @@
svg.select("defs").append("clipPath") svg.select("defs").append("clipPath")
.attr("id", clipId) .attr("id", clipId)
.append("rect") .append("rect")
.attr("y", 10) .attr("y", margin.top)
.attr("width", width) .attr("width", width)
.attr("height", height-10) .attr("height", height-margin.top)
svg.select("defs").append("clipPath") svg.select("defs").append("clipPath")
.attr("id", "xaxis-clip") .attr("id", "xaxis-clip")
...@@ -284,9 +284,9 @@ ...@@ -284,9 +284,9 @@
.attr("id", "yaxis-clip") .attr("id", "yaxis-clip")
.append("rect") .append("rect")
.attr("x", -40 + 1) .attr("x", -40 + 1)
.attr("y", 10 - 1) .attr("y", margin.top - 1)
.attr("width", 40) .attr("width", 40)
.attr("height", height) .attr("height", height - margin.top + 2)
// Define regions // Define regions
var main = svg.append("g") var main = svg.append("g")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment