match card counts margin with other graphs

This commit is contained in:
Damien Elmes 2020-08-10 15:31:42 +10:00
parent 62102d85b2
commit 94e8a8b274
2 changed files with 1 additions and 3 deletions

View File

@ -11,8 +11,6 @@
let bounds = defaultGraphBounds();
bounds.height = 20;
bounds.marginLeft = 20;
bounds.marginRight = 20;
bounds.marginTop = 0;
let activeIdx: null | number = null;

View File

@ -136,7 +136,7 @@ export function renderCards(
const svg = select(svgElem);
const trans = svg.transition().duration(600) as any;
x.range([bounds.marginLeft, bounds.width - bounds.marginRight - bounds.marginLeft]);
x.range([bounds.marginLeft, bounds.width - bounds.marginRight]);
const tableData = data.map((d, idx) => {
const percent = ((d.count / xMax) * 100).toFixed(1);