diff --git a/src/main/resources/monitor.html b/src/main/resources/monitor.html index 3c0134b..5aa7bd6 100644 --- a/src/main/resources/monitor.html +++ b/src/main/resources/monitor.html @@ -70,8 +70,8 @@ const tree = d3.tree().size([2 * Math.PI, radius - 75]); const svg = d3.select('svg') - .style('width', width) - .style('height', height) + .style('width', width + 'px') + .style('height', height + 'px') .style('padding', '10px') .style('box-sizing', 'border-box') .style('font', 'sans-serif'); diff --git a/src/main/resources/monitor2.html b/src/main/resources/monitor2.html index 806a702..5757dfb 100644 --- a/src/main/resources/monitor2.html +++ b/src/main/resources/monitor2.html @@ -174,8 +174,8 @@

.size([w, h - 100]); var vis = d3.select('body').append('svg:svg') - .attr('width', w) - .attr('height', h); + .attr('width', w + 'px') + .attr('height', h + 'px'); function update() { var nodes = flatten(root), diff --git a/src/main/resources/monitor3.html b/src/main/resources/monitor3.html index f4b598b..e7e7745 100644 --- a/src/main/resources/monitor3.html +++ b/src/main/resources/monitor3.html @@ -135,8 +135,8 @@

} var svg = d3.select('body').append('svg:svg') - .attr('width', w) - .attr('height', h); + .attr('width', w + 'px') + .attr('height', h + 'px'); function update() { // hack to get around problem with building g (group) child tags: circle and text diff --git a/src/test/resources/d3v5-test.html b/src/test/resources/d3v5-test.html index c7c0229..eda2c33 100644 --- a/src/test/resources/d3v5-test.html +++ b/src/test/resources/d3v5-test.html @@ -23,8 +23,8 @@