@visactor/vchart
Version:
charts lib based @visactor/VGrammar
29 lines (27 loc) • 606 B
JavaScript
const getTextStyle = (fontSizeKey, fillKey) => ({
fontSize: {
type: "token",
key: fontSizeKey
},
fill: {
type: "palette",
key: fillKey
},
fontWeight: "normal",
fillOpacity: 1,
textBaseline: "top",
textAlign: "center"
});
export const indicator = {
title: {
visible: !0,
autoLimit: !1,
autoFit: !1,
style: getTextStyle("l1FontSize", "primaryFontColor")
},
content: {
visible: !0,
style: getTextStyle("l2FontSize", "tertiaryFontColor")
}
};
//# sourceMappingURL=indicator.js.map