Merge pull request #103 from t47io/fix-y-axis-inverse

sort intervals incrementally
This commit is contained in:
Prateeksha Singh 2018-04-22 12:45:00 +05:30 committed by GitHub
commit c1ed05f7dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 10 deletions

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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) {