mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
match card counts margin with other graphs
This commit is contained in:
parent
62102d85b2
commit
94e8a8b274
2 changed files with 1 additions and 3 deletions
|
@ -11,8 +11,6 @@
|
|||
|
||||
let bounds = defaultGraphBounds();
|
||||
bounds.height = 20;
|
||||
bounds.marginLeft = 20;
|
||||
bounds.marginRight = 20;
|
||||
bounds.marginTop = 0;
|
||||
|
||||
let activeIdx: null | number = null;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue