From 86bbb6d2aa1c79ba733ebf481ea969608052e01c Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 15 Dec 2020 16:07:49 +0530 Subject: [PATCH] chore: remove base font-fill --- src/js/utils/draw.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/js/utils/draw.js b/src/js/utils/draw.js index 4aaba60..d1b4557 100644 --- a/src/js/utils/draw.js +++ b/src/js/utils/draw.js @@ -7,7 +7,6 @@ const LABEL_MARGIN = 4; const LABEL_MAX_CHARS = 18; export const FONT_SIZE = 10; const BASE_LINE_COLOR = '#E2E6E9'; -const FONT_FILL = '#313B44'; function $(expr, con) { return typeof expr === "string" ? (con || document).querySelector(expr) : expr || null; @@ -245,7 +244,6 @@ export function legendDot(x, y, size, radius, fill = 'none', label, value, font_ dy: (font_size / 3) + 'px', 'font-size': (font_size * 1.6) + 'px', 'text-anchor': 'start', - fill: FONT_FILL, innerHTML: label }); @@ -259,7 +257,6 @@ export function legendDot(x, y, size, radius, fill = 'none', label, value, font_ dy: (FONT_SIZE / 3) + 'px', 'font-size': (FONT_SIZE * 1.2) + 'px', 'text-anchor': 'start', - fill: FONT_FILL, innerHTML: value }); }