Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/resources/monitor.html
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/monitor2.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ <h2>
.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),
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/monitor3.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ <h2>
}

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
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/d3v5-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<script>

var svg = d3.select('svg'),
width = +svg.attr('width'),
height = +svg.attr('height');
width = +svg.attr('width' + 'px'),
height = +svg.attr('height' + 'px');

function color(d) {
if (d.data.type == 'cluster') {
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/force-collapsible-labels.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ <h2>
}

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
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/force-collapsible-old-working.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ <h2>
.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');

// root = root();
// root.fixed = true;
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/force-collapsible-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ <h2>
.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');

root = root();
root.fixed = true;
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/force-collapsible.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ <h2>
.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');

root = root();
root.fixed = true;
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/monitor.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,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');
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/time-series-v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@

var svg = d3.select('.graph').append('svg')
.attr('class', 'chart')
.attr('width', width)
.attr('height', height + 50)
.attr('width', width + 'px')
.attr('height', (height + 50) + 'px')

var axis = svg.append('g')
.attr('class', 'x axis')
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/time-series-v5.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@

const svg = d3.select('.graph')
.append('svg')
.attr('width', width)
.attr('height', height + 50); // add 50 to make room for X axis
.attr('width', width + 'px')
.attr('height', (height + 50) + 'px'); // add 50 to make room for X axis

const gGraph = svg.append('g')
.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/tree1.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,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');
Expand Down