@@ -160,13 +160,17 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
160160 }
161161
162162 private initializeHeatmap ( ) {
163- this . heatmapService . initialize ( '#chart' , {
164- imageWidth : 1200 ,
165- margin : 5 ,
166- maxLevel : this . maxLevel ,
167- dimLabels : this . dimensionLabels ,
168- colors : this . theme_colors
169- } , ( sector ) => this . getSectorProgress ( sector ) ) ;
163+ this . heatmapService . initialize (
164+ '#chart' ,
165+ {
166+ imageWidth : 1200 ,
167+ margin : 5 ,
168+ maxLevel : this . maxLevel ,
169+ dimLabels : this . dimensionLabels ,
170+ colors : this . theme_colors ,
171+ } ,
172+ sector => this . getSectorProgress ( sector )
173+ ) ;
170174
171175 this . heatmapService . render (
172176 this . allSectors ,
@@ -176,11 +180,19 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
176180 if ( this . selectedSector ?. activities ?. length ) {
177181 this . heatmapService . setSectorCursor ( '#selected' , id ) ;
178182 this . showActivityCard = this . selectedSector ;
179- console . log ( `${ perfNow ( ) } : Heat: Clicked sector: '${ this . selectedSector . dimension } ' Level: ${ this . selectedSector . level } ` ) ;
183+ console . log (
184+ `${ perfNow ( ) } : Heat: Clicked sector: '${ this . selectedSector . dimension } ' Level: ${
185+ this . selectedSector . level
186+ } `
187+ ) ;
180188 } else {
181189 this . showActivityCard = null ;
182190 this . heatmapService . setSectorCursor ( '#selected' , '' ) ;
183- console . log ( `${ perfNow ( ) } : Heat: Clicked disabled sector: '${ this . selectedSector ?. dimension } ' Level: ${ this . selectedSector ?. level } ` ) ;
191+ console . log (
192+ `${ perfNow ( ) } : Heat: Clicked disabled sector: '${
193+ this . selectedSector ?. dimension
194+ } ' Level: ${ this . selectedSector ?. level } `
195+ ) ;
184196 }
185197 } ,
186198 onMouseOver : ( sector , index , id ) => {
@@ -198,9 +210,9 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
198210 onMouseOut : ( ) => {
199211 this . heatmapService . setSectorCursor ( '#hover' , '' ) ;
200212 this . titleService . clearTitle ( ) ;
201- }
213+ } ,
202214 } ,
203- ( sector ) => this . getSectorProgress ( sector )
215+ sector => this . getSectorProgress ( sector )
204216 ) ;
205217 }
206218
@@ -341,10 +353,6 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
341353 }
342354 }
343355
344-
345-
346-
347-
348356 defineStringValues ( dataToCheck : string , valueOfDataIfUndefined : string ) : string {
349357 try {
350358 return this . markdown . render ( dataToCheck ) ;
@@ -436,7 +444,12 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
436444
437445 recolorSector ( index : number ) {
438446 let progressValue : number = this . getSectorProgress ( this . allSectors [ index ] ) ;
439- if ( progressValue ) console . debug ( `${ perfNow ( ) } s: recolorSector #${ index } sector: ${ progressValue . toFixed ( 2 ) } (${ this . theme_colors . filled } )` ) ;
447+ if ( progressValue )
448+ console . debug (
449+ `${ perfNow ( ) } s: recolorSector #${ index } sector: ${ progressValue . toFixed ( 2 ) } (${
450+ this . theme_colors . filled
451+ } )`
452+ ) ;
440453
441454 this . heatmapService . recolorSector ( index , progressValue ) ;
442455 }
0 commit comments