Commit 9532a8e0 authored by Romain Loth's avatar Romain Loth

2 x forgotten: int in colors + fix slider css path

parent e2e716b8
......@@ -57,7 +57,7 @@
<link rel="stylesheet" href="twlibs3/jquery-3/jquery-ui-1.12.1/jquery-ui.min.css" media="screen">
<!-- NB bootstrap 3 not used for main grid (graph + bars) but inside the bars -->
<link rel="stylesheet" href="twlibs3/bootstrap-3/css/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="twlibs3/css/freshslider/freshslider.css" media="screen">
<link rel="stylesheet" href="twlibs3/freshslider/freshslider.css" media="screen">
<link rel="stylesheet" href="twlibs3/tweets/tweet.light.ltr.css" />
<link rel="stylesheet" href="twlibs3/tweets/custom.css"/>
......
......@@ -889,13 +889,7 @@ function heatmapColoring(daclass) {
function clusterColoring(daclass) {
console.log("")
console.log(" = = = = = = = = = = = = = = = = = ")
console.log(" = = = = = = = = = = = = = = = = = ")
console.log("clusterColoring ( "+daclass+" )")
console.log(" = = = = = = = = = = = = = = = = = ")
console.log(" = = = = = = = = = = = = = = = = = ")
console.log("")
cancelSelection(false); // now loops only on selected
graphResetLabelsAndSizes() // full loop
......@@ -953,7 +947,7 @@ function clusterColoring(daclass) {
let val = valGroup.val || valGroup.range
// use the int as an index between 0 and nColors
if (parseInt(val) == val) {
theColor = colList [val] % nColors
theColor = colList [val % nColors]
}
// or create a representative int on the same range
else {
......@@ -973,7 +967,7 @@ function clusterColoring(daclass) {
}
}
// rembember in TW.Clusters
// remember in TW.Clusters
valGroup.col = theColor
}
}
......
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