@@ -186,12 +186,6 @@ export class CircularHeatmapComponent implements OnInit {
186186 . domain ( [ 0 , 1 ] )
187187 . range ( [ 'white' , 'green' ] ) ;
188188
189- this . loadCircularHeatMap (
190- this . ALL_CARD_DATA ,
191- '#chart' ,
192- this . radial_labels ,
193- this . segment_labels
194- ) ;
195189 d3 . selectAll (
196190 '#segment-' +
197191 this . ALL_CARD_DATA [ index ] [ 'SubDimension' ] . replace ( / / g, '-' ) +
@@ -202,17 +196,6 @@ export class CircularHeatmapComponent implements OnInit {
202196 } ) ;
203197 }
204198
205- SaveEditedYAMLfile ( ) {
206- console . log ( this . YamlObject ) ;
207- let yamlStr = yaml . dump ( this . YamlObject ) ;
208- let file = new Blob ( [ yamlStr ] , { type : 'text/csv;charset=utf-8' } ) ;
209- var link = document . createElement ( 'a' ) ;
210- link . href = window . URL . createObjectURL ( file ) ;
211- link . download = 'generated.yaml' ;
212- link . click ( ) ;
213- link . remove ( ) ;
214- }
215-
216199 loadCircularHeatMap (
217200 dataset : any ,
218201 dom_element_to_append_to : string ,
@@ -584,4 +567,31 @@ export class CircularHeatmapComponent implements OnInit {
584567 //console.log(this.ALL_CARD_DATA);
585568 this . router . navigate ( [ this . Routing ] , navigationExtras ) ;
586569 }
570+ SaveEditedYAMLfile ( ) {
571+ //console.log(this.YamlObject);
572+ let yamlStr = yaml . dump ( this . YamlObject ) ;
573+ let file = new Blob ( [ yamlStr ] , { type : 'text/csv;charset=utf-8' } ) ;
574+ var link = document . createElement ( 'a' ) ;
575+ link . href = window . URL . createObjectURL ( file ) ;
576+ link . download = 'generated.yaml' ;
577+ link . click ( ) ;
578+ link . remove ( ) ;
579+ }
580+
581+ ResetIsImplemented ( ) {
582+ for ( var x = 0 ; x < this . ALL_CARD_DATA . length ; x ++ ) {
583+ if ( this . ALL_CARD_DATA [ x ] [ 'Done%' ] > 0 ) {
584+ this . ALL_CARD_DATA [ x ] [ 'Done%' ] = 0 ;
585+ for ( var y = 0 ; y < this . ALL_CARD_DATA [ x ] [ 'Task' ] . length ; y ++ ) {
586+ this . ALL_CARD_DATA [ x ] [ 'Task' ] [ y ] [ 'ifTaskDone' ] = false ;
587+ }
588+ d3 . selectAll (
589+ '#segment-' +
590+ this . ALL_CARD_DATA [ x ] [ 'SubDimension' ] . replace ( / / g, '-' ) +
591+ '-' +
592+ this . ALL_CARD_DATA [ x ] [ 'Level' ] . replace ( ' ' , '-' )
593+ ) . attr ( 'fill' , 'white' ) ;
594+ }
595+ }
596+ }
587597}
0 commit comments