chore: default to CSS vars in makeText()

This commit is contained in:
Arjun Choudhary 2022-11-26 11:49:17 +05:30
parent c17e2c6c6f
commit 0a4a3a6530

View File

@ -371,7 +371,7 @@ export function legendDot(
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,