fix: vaidate y

This commit is contained in:
Arjun Choudhary 2022-11-26 11:40:05 +05:30
parent 6a853ca29d
commit 652913675c

View File

@ -529,6 +529,8 @@ export function xLine(x, label, height, options = {}) {
}
export function yMarker(y, label, width, options = {}) {
if (!isValidNumber(y)) y = 0;
if (!options.labelPos) options.labelPos = "right";
let x =
options.labelPos === "left"