Skip to content

Commit c180f11

Browse files
committed
Heatmap: Fixed recoloring with a pinch()
1 parent 270b5b6 commit c180f11

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

src/app/pages/circular-heatmap/circular-heatmap.component.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,7 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
259259
}
260260

261261
getSectorProgress(sector: Sector): number {
262-
// console.log('getSectorProgress');
263-
// if (sector.level % 2 == 1) return 0;
264-
// return this.pinch(0.06, 0.8, ((sector.dimensionIndex||0)) / 18);
265-
// if (this.sectorService.getSectorProgress(sector.activities)>0) console.log(this.sectorService.getSectorProgress(sector.activities)+ ': ' + sector.level + ' ' + sector.dimension);
266-
return this.pinch(0.06, 0.8, this.sectorService.getSectorProgress(sector.activities));
267-
// return this.pinch(0.03, 0.8, this.sectorService.getSectorProgress(sector.activities));
262+
return this.pinch(0.08, 0.8, this.sectorService.getSectorProgress(sector.activities));
268263
}
269264

270265
pinch(min: number, max: number, value: number): number {
@@ -658,9 +653,7 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
658653
.domain([0, 1])
659654
.range([this.theme_colors['background'], this.theme_colors['filled']]);
660655

661-
let progressValue: number = this.sectorService.getSectorProgress(
662-
this.allSectors[index].activities
663-
);
656+
let progressValue: number = this.getSectorProgress(this.allSectors[index]);
664657
d3.select('#index-' + index).attr(
665658
'fill',
666659
isNaN(progressValue) ? this.theme_colors['disabled'] : colorSector(progressValue)

0 commit comments

Comments
 (0)