Commit 32681e41 authored by LuboVarga's avatar LuboVarga Committed by stuart nelson

Fixed transformation of svg pane (#1048)

There is an offset of 200 (pixels?) on svg pane, when visualizing more complex things. I have removed subtraction of magic constant and it seems it is working properly.
Signed-off-by: 's avatarĽubomír Varga <lubomir.varga@nike.sk>
parent fe21b24e
...@@ -42,7 +42,7 @@ function resetSVG() { ...@@ -42,7 +42,7 @@ function resetSVG() {
.attr("width", diameter) .attr("width", diameter)
.attr("height", diameter - 150) .attr("height", diameter - 150)
.append("g") .append("g")
.attr("transform", "translate(" + diameter / 2 + "," + (diameter / 2 - 200) + ")"); .attr("transform", "translate(" + diameter / 2 + "," + (diameter / 2) + ")");
} }
// Click handler for reading config.yml // Click handler for reading config.yml
......
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