Browse Source

commit some codes

master
xiaowuler 3 years ago
parent
commit
44eb9101cb
  1. 4
      04.系统编码/Frontend/src/uilts/box-drawer.ts

4
04.系统编码/Frontend/src/uilts/box-drawer.ts

@ -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];

Loading…
Cancel
Save