feat: Allow lineType from Y-marker

This commit is contained in:
Arjun Choudhary 2022-11-28 14:57:18 +05:30
parent 0a4a3a6530
commit 2bb46a0c60
2 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,7 @@ let componentConfigs = {
labelPos: m.options.labelPos, labelPos: m.options.labelPos,
stroke: m.options.stroke, stroke: m.options.stroke,
mode: "span", mode: "span",
lineType: "dashed", lineType: m.options.lineType,
}) })
); );
}, },

View File

@ -529,6 +529,7 @@ export function yMarker(y, label, width, options = {}) {
if (!isValidNumber(y)) y = 0; if (!isValidNumber(y)) y = 0;
if (!options.labelPos) options.labelPos = "right"; if (!options.labelPos) options.labelPos = "right";
if (!options.lineType) options.lineType = "dashed";
let x = let x =
options.labelPos === "left" options.labelPos === "left"
? LABEL_MARGIN ? LABEL_MARGIN