|
|
@ -1,3 +1,4 @@ |
|
|
|
import { number } from "echarts"; |
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
export function createEmptyCanvas(id: string, width: number, height: number): void{ |
|
|
@ -398,7 +399,8 @@ export class ColorChart{ |
|
|
|
} |
|
|
|
|
|
|
|
public getColor(value: number): string{ |
|
|
|
|
|
|
|
if (isNaN(value)) return null; |
|
|
|
|
|
|
|
for(let index = 1; index < this.valueLength; index ++){ |
|
|
|
if (this.values[index -1] < value && this.values[index] >= value){ |
|
|
|
return this.colors[index - 1]; |
|
|
|