Skip to content

Commit

Permalink
Fix network bar offset
Browse files Browse the repository at this point in the history
  • Loading branch information
foot committed Jun 2, 2016
1 parent c5870a1 commit 42c9df5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/app/scripts/charts/node-networks-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ const h = 5;
const padding = 0.05;
const rx = 1;
const ry = rx;
const labelOffset = 38;

function NodeNetworksOverlay({size, orientation = 'down', stack, networks = makeList()}) {
const offset = orientation === 'up' ? -size * 0.5 - h - 9 : size + 6;
function NodeNetworksOverlay({size, stack, networks = makeList()}) {
const r = size * 0.5;
const offset = r + labelOffset;
const w = Math.max(size, (size / 4) * networks.size);
const x = d3.scale.ordinal()
.domain(networks.map((n, i) => i).toJS())
Expand Down

0 comments on commit 42c9df5

Please sign in to comment.