|
|
@ -19,8 +19,6 @@ export class HeatMapDrawer{ |
|
|
|
private readonly paddingBottom: number = 50; |
|
|
|
private colorChart: ColorChart = null; |
|
|
|
private values: any = null; |
|
|
|
private readonly verticalScaleSpecialCount: number = 1; |
|
|
|
private readonly horizontalScaleSpecialCount: number = 1; |
|
|
|
|
|
|
|
// 垂直刻度
|
|
|
|
private readonly verticalScaleLine: number = 18; |
|
|
@ -145,13 +143,15 @@ export class HeatMapDrawer{ |
|
|
|
|
|
|
|
let targetValue = value[infoIndex].value; |
|
|
|
let color = this.colorChart.getColor(targetValue); |
|
|
|
value[infoIndex].updateBorderInfo(width, height); |
|
|
|
value[infoIndex].updateBorderInfo(x, y, width, height); |
|
|
|
if (color == null) continue; |
|
|
|
this.canvasContext.fillStyle = color; |
|
|
|
this.canvasContext.fillRect(x, y, width, height); |
|
|
|
} |
|
|
|
// this.values[dataIndex] = this.values[dataIndex].reverse();
|
|
|
|
this.values[dataIndex] = this.values[dataIndex].reverse(); |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.values); |
|
|
|
this.createCalc(this.values); |
|
|
|
} |
|
|
|
|
|
|
|