gh-benchmarks-grapher
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -57,2 +57,3 @@ | ||
o.x = run.tagName || run.lastCommit.substr(run.lastCommit.length - 6); | ||
o.x += "|" + job.repoUrl + "/tree/" + (r.tagName || r.lastCommit); | ||
chartData.push(o); | ||
@@ -69,2 +70,3 @@ } | ||
o.x = run.tagName || run.lastCommit.substr(run.lastCommit.length - 6); | ||
o.x += "|" + job.repoUrl + "/tree/" + (r.tagName || r.lastCommit); | ||
for (var y=0; y < chart.config.lines.length; y++) { | ||
@@ -71,0 +73,0 @@ var line = chart.config.lines[y]; |
{ | ||
"name": "gh-benchmarks-grapher", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "default graphing engine for gh-benchmarks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -190,2 +190,12 @@ | ||
// this is the thing we have to do to add links to commit names | ||
graph.selectAll("g.x.axis g text").each(function (d, i) { | ||
var g = d3.select(this); | ||
var text = g.text().split('|'); | ||
g.text(''); | ||
g.append("a") | ||
.attr("xlink:href", text[1]) | ||
.text(text[0]); | ||
}); | ||
// add the y-axis | ||
@@ -307,2 +317,12 @@ graph.append("g") | ||
// this is the thing we have to do to add links to commit names | ||
graph.selectAll("g.x.axis g text").each(function (d, i) { | ||
var g = d3.select(this); | ||
var text = g.text().split('|'); | ||
g.text(''); | ||
g.append("a") | ||
.attr("xlink:href", text[1]) | ||
.text(text[0]); | ||
}); | ||
var yAxis = d3.svg.axis() | ||
@@ -309,0 +329,0 @@ .scale(y) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175208
901