|
|
@ -134,7 +134,7 @@ export class HeatMapDrawer{ |
|
|
|
for(let dataIndex = 0, len = this.values.length, lastDataLen = len - 1; dataIndex < len; dataIndex++){ |
|
|
|
let value = this.values[dataIndex]; |
|
|
|
for(let lastInfoLen = value.length - 1, infoIndex = lastInfoLen; infoIndex >= 0; infoIndex--){ |
|
|
|
// if (value[infoIndex] == null) continue;
|
|
|
|
if (value[infoIndex] == null) continue; |
|
|
|
|
|
|
|
let x = startX + dataIndex * this.verticalScaleIntervalLength; |
|
|
|
let y = startY + (this.borderHeight - infoIndex * this.horizontalScaleIntervalLength); |
|
|
@ -156,7 +156,7 @@ export class HeatMapDrawer{ |
|
|
|
} |
|
|
|
|
|
|
|
let targetValue = value[infoIndex].value; |
|
|
|
let color = this.colorChart.getColor(targetValue, this.id); |
|
|
|
let color = this.colorChart.getColor(targetValue); |
|
|
|
value[infoIndex].updateBorderInfo(x, y, width, height); |
|
|
|
if (color == null) continue; |
|
|
|
this.canvasContext.fillStyle = color; |
|
|
|