From 316c78dcc3703ff5de9182b627f2469c3e6fd4d8 Mon Sep 17 00:00:00 2001 From: Adrien Bestel Date: Thu, 4 Jul 2019 22:02:33 +0100 Subject: [PATCH] Make monitor work with HTML --- src/main/resources/monitor.html | 4 ++-- src/main/resources/monitor2.html | 4 ++-- src/main/resources/monitor3.html | 4 ++-- src/test/resources/d3v5-test.html | 4 ++-- src/test/resources/force-collapsible-labels.html | 4 ++-- src/test/resources/force-collapsible-old-working.html | 4 ++-- src/test/resources/force-collapsible-test.html | 4 ++-- src/test/resources/force-collapsible.html | 4 ++-- src/test/resources/monitor.html | 4 ++-- src/test/resources/time-series-v3.html | 4 ++-- src/test/resources/time-series-v5.html | 4 ++-- src/test/resources/tree1.html | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) 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 @@