feat: Allow lineType from Y-marker
This commit is contained in:
parent
0a4a3a6530
commit
2bb46a0c60
@ -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,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user