diff --git a/pdb-js/src/app/plot-view/plot-view.component.ts b/pdb-js/src/app/plot-view/plot-view.component.ts index 3998fe2..4028756 100644 --- a/pdb-js/src/app/plot-view/plot-view.component.ts +++ b/pdb-js/src/app/plot-view/plot-view.component.ts @@ -182,9 +182,7 @@ export class PlotViewComponent implements OnInit { const newDateRange = formattedStartDate+" - "+formattedEndDate; - //(document.getElementById("search-date-range")).value = newDateRange; this.dateRangeUpdateEvent.emit(newDateRange); - //this.plot(); } zoomRange(range: SelectionRange) { @@ -250,7 +248,11 @@ export class PlotViewComponent implements OnInit { this.axes = this.getAxes(); const request = this.createPlotRequest(dimension); + + this.imageUrl = ''; + this.stats = null; + document.dispatchEvent(new Event("invadersStart", {})); this.loadingEvent.emit(new LoadingEvent(true)); const x = this.service.sendPlotRequest(request).subscribe({ next: (plotResponse: PlotResponse) => {