feat: default to css vars in makeText

This commit is contained in:
Shivam Mishra 2020-12-15 16:37:13 +05:30
parent f413c75932
commit 8308b9fd90

View File

@ -277,7 +277,7 @@ export function legendDot(x, y, size, radius, fill = 'none', label, value, font_
export function makeText(className, x, y, content, options = {}) {
let fontSize = options.fontSize || FONT_SIZE;
let dy = options.dy !== undefined ? options.dy : (fontSize / 2);
let fill = options.fill || FONT_FILL;
let fill = options.fill || "var(--charts-label-color)";
let textAnchor = options.textAnchor || 'start';
return createSVG('text', {
className: className,