fix: vaidate y
This commit is contained in:
parent
6a853ca29d
commit
652913675c
@ -529,6 +529,8 @@ export function xLine(x, label, height, options = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function yMarker(y, label, width, options = {}) {
|
export function yMarker(y, label, width, options = {}) {
|
||||||
|
if (!isValidNumber(y)) y = 0;
|
||||||
|
|
||||||
if (!options.labelPos) options.labelPos = "right";
|
if (!options.labelPos) options.labelPos = "right";
|
||||||
let x =
|
let x =
|
||||||
options.labelPos === "left"
|
options.labelPos === "left"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user