Skip to content

Commit

Permalink
Update vc-style.pipe.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
geoyogesh committed Oct 8, 2020
1 parent 50ae157 commit 4355089
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/capx/src/app/capx/pipes/vc-style.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export class VcStylePipe implements PipeTransform {
let color = '#666';
if (cv !== null) {
if (cv < 0.75) {
color = '#00FF00';
color = '#ffffb2';
} else if (cv >= 0.75 && cv < 0.875) {
color = '#FFFF00';
color = '#fecc5c';
} else if (cv >= 0.875 && cv < 1) {
color = '#FFA500';
color = '#fd8d3c';
} else if (cv > 1) {
color = '#FF0000';
color = '#e31a1c';
}
}
return color;
Expand Down

0 comments on commit 4355089

Please sign in to comment.