Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Use assigned bar width #232
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Aug 9, 2017
1 parent d5c39a3 commit 7db52cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewer/js/xdot2cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2459,7 +2459,7 @@ function drawEdgeWeightHistogram() {
);
bar.append("rect")
.attr("x", 1)
.attr("width", x(bins[0].x1) - x(bins[0].x0) - 1)
.attr("width", function(d) { return x(d.x1) - x(d.x0) - 1; })
.attr("height", function(d) { return height - y(d.length); });

var xAxis = d3.axisBottom(x);
Expand All @@ -2485,7 +2485,7 @@ function drawEdgeWeightHistogram() {
.attr("dy", "1em")
.style("text-anchor", "middle")
.text("Frequency");
// TODO: ensure that there's space between every bar; ensure that the
// TODO: ensure that bars have uniform width?; ensure that the
// y-axis only has ticks for integer values
}

Expand Down

0 comments on commit 7db52cb

Please sign in to comment.