From 94e8a8b2746005c81532ed755c6af2e610bdf22a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 10 Aug 2020 15:31:42 +1000 Subject: [PATCH] match card counts margin with other graphs --- ts/src/stats/CardCounts.svelte | 2 -- ts/src/stats/card-counts.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/src/stats/CardCounts.svelte b/ts/src/stats/CardCounts.svelte index 76e883706..d04cf0613 100644 --- a/ts/src/stats/CardCounts.svelte +++ b/ts/src/stats/CardCounts.svelte @@ -11,8 +11,6 @@ let bounds = defaultGraphBounds(); bounds.height = 20; - bounds.marginLeft = 20; - bounds.marginRight = 20; bounds.marginTop = 0; let activeIdx: null | number = null; diff --git a/ts/src/stats/card-counts.ts b/ts/src/stats/card-counts.ts index b11e153c0..22fc614e1 100644 --- a/ts/src/stats/card-counts.ts +++ b/ts/src/stats/card-counts.ts @@ -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);