Skip to content

Commit

Permalink
feat: Allow lineType from Y-marker
Browse files Browse the repository at this point in the history
  • Loading branch information
uhrjun committed Nov 28, 2022
1 parent 0a4a3a6 commit 2bb46a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/objects/ChartComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ let componentConfigs = {
labelPos: m.options.labelPos,
stroke: m.options.stroke,
mode: "span",
lineType: "dashed",
lineType: m.options.lineType,
})
);
},
Expand Down
1 change: 1 addition & 0 deletions src/js/utils/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ export function yMarker(y, label, width, options = {}) {
if (!isValidNumber(y)) y = 0;

if (!options.labelPos) options.labelPos = "right";
if (!options.lineType) options.lineType = "dashed";
let x =
options.labelPos === "left"
? LABEL_MARGIN
Expand Down

0 comments on commit 2bb46a0

Please sign in to comment.