sort intervals incrementally

This commit is contained in:
t47io 2017-12-20 17:24:23 -08:00 committed by Prateeksha Singh
parent 9470e62954
commit 327f5204a5

View File

@ -152,7 +152,7 @@ export function calcChartIntervals(values, withMinimum=false) {
intervals = intervals.reverse().map(d => d * (-1));
}
return intervals;
return intervals.sort((a, b) => (a - b));
}
export function getZeroIndex(yPts) {