Commit 4f21f3c8 authored by Romain Loth's avatar Romain Loth

arf sort array

parent 33db9f29
...@@ -794,6 +794,8 @@ function colorsRelByBins(daclass) { ...@@ -794,6 +794,8 @@ function colorsRelByBins(daclass) {
var len = valArray.length var len = valArray.length
valArray.sort() // important :)
for (var l=0 ; l < nTicksParam ; l++) { for (var l=0 ; l < nTicksParam ; l++) {
let nthVal = Math.floor(len * l / nTicksParam) let nthVal = Math.floor(len * l / nTicksParam)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment