match card counts margin with other graphs
This commit is contained in:
parent
62102d85b2
commit
94e8a8b274
@ -11,8 +11,6 @@
|
|||||||
|
|
||||||
let bounds = defaultGraphBounds();
|
let bounds = defaultGraphBounds();
|
||||||
bounds.height = 20;
|
bounds.height = 20;
|
||||||
bounds.marginLeft = 20;
|
|
||||||
bounds.marginRight = 20;
|
|
||||||
bounds.marginTop = 0;
|
bounds.marginTop = 0;
|
||||||
|
|
||||||
let activeIdx: null | number = null;
|
let activeIdx: null | number = null;
|
||||||
|
@ -136,7 +136,7 @@ export function renderCards(
|
|||||||
const svg = select(svgElem);
|
const svg = select(svgElem);
|
||||||
const trans = svg.transition().duration(600) as any;
|
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 tableData = data.map((d, idx) => {
|
||||||
const percent = ((d.count / xMax) * 100).toFixed(1);
|
const percent = ((d.count / xMax) * 100).toFixed(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user