Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 3 additions & 2 deletions lib/measures/detailed_hvac_viewer/resources/report.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@
delete activeNodes[element.id];
element.attr('body/fill','white');
} else {
let color = getRandomColor()
const gridIndex = gridData.findIndex(obj => obj.name === element.id);
const color = getColorById(gridIndex)
activeNodes[element.id] = {"nodeName": element.id, NodeValues, color}
element.attr('body/fill', color);
}
Expand Down Expand Up @@ -1119,7 +1120,7 @@
/* END D3 MULTILINE PLOT */
function getColorById(id, colorScale = "schemeTableau10") {
// should decide on how to approach series greater than 10. generating random values above 10.
if (id > d3[colorScale].length) {
if (id > d3[colorScale].length - 1) {
return getRandomColor();
}
return d3[colorScale][id];
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading