use the new api in tempest results viewer
This commit is contained in:
parent
2989d56558
commit
b2e036836f
|
@ -46,7 +46,7 @@
|
||||||
.attr("transform", "translate(" + width / 2 + "," + (height / 2 + 10) + ")");
|
.attr("transform", "translate(" + width / 2 + "," + (height / 2 + 10) + ")");
|
||||||
|
|
||||||
var partition = d3.layout.partition()
|
var partition = d3.layout.partition()
|
||||||
.value(function(d) { return d.size; });
|
.value(function(d) { return d.duration; });
|
||||||
|
|
||||||
var arc = d3.svg.arc()
|
var arc = d3.svg.arc()
|
||||||
.startAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x))); })
|
.startAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x))); })
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
.innerRadius(function(d) { return Math.max(0, y(d.y)); })
|
.innerRadius(function(d) { return Math.max(0, y(d.y)); })
|
||||||
.outerRadius(function(d) { return Math.max(0, y(d.y + d.dy)); });
|
.outerRadius(function(d) { return Math.max(0, y(d.y + d.dy)); });
|
||||||
|
|
||||||
d3.json("/static/logs.json", function(error, root) {
|
d3.json("/tempest/api/0/", function(error, root) {
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
|
|
||||||
var path = svg.selectAll("path")
|
var path = svg.selectAll("path")
|
||||||
|
|
Loading…
Reference in New Issue