fix: path building error

This commit is contained in:
Shivam Mishra 2021-04-18 11:35:44 +00:00 committed by GitHub
parent 1b4e206a1e
commit db12dcf27c

View File

@ -58,6 +58,8 @@ export function shortenLargeNumber(label) {
export function getSplineCurvePointsStr(xList, yList) {
let points = [];
const length = Math.min(xList.length, yList.length);
for (let i = 0; i < xList.length; i++) {
points.push([xList[i], yList[i]]);
}