Skip to content
Snippets Groups Projects
Commit a4ff158d authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix rendering of heat cloud for statistics

parent 352d0019
No related branches found
No related tags found
No related merge requests found
......@@ -304,10 +304,10 @@ span.label {
tr.append($('<th>').append(row[j]));
else {
val = parseFloat(row[j])||0;
if (val && range[j] && json.data.length > 1) {
scale = val / range[j];
if (val && max[j] && json.data.length > 1) {
scale = val / max[j];
color = Raphael.hsb(
Math.min((1 - val / range[j]) * .4, 1),
Math.min((1 - scale) * .4, 1),
.75, .75);
size = 16 * scale;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment