mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fixing math
This commit is contained in:
parent
d55b440174
commit
3fbb3f7480
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ export default function HeatmapChartFactory(Private) {
|
|||
val = colorsNumber - 1;
|
||||
} else {
|
||||
val = (d.y - min) / (max - min); /* get val from 0 - 1 */
|
||||
val = Math.round(val * (colorsNumber - 1));
|
||||
val = Math.floor(val * colorsNumber);
|
||||
}
|
||||
}
|
||||
return val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue