+ <div class="timeserie">
+ <div ngbNav #nav="ngbNav" [activeId]="activeGraphId" (activeIdChange)="onChartChange($event)" class="nav-tabs">
+
+ <ng-container *ngFor="let availableChart of availableCharts" [ngbNavItem]="availableChart.id">
+ <a ngbNavLink>
+ <span>{{ availableChart.label }}</span>
+ </a>
+
+ <ng-template ngbNavContent>
+ <div class="chart-container" [ngStyle]="{ 'min-height': chartHeight }">
+ <p-chart
+ *ngIf="chartOptions[availableChart.id]"
+ [height]="chartHeight" [width]="chartWidth"
+ [type]="chartOptions[availableChart.id].type" [options]="chartOptions[availableChart.id].options" [data]="chartOptions[availableChart.id].data"
+ [plugins]="chartPlugins"
+ ></p-chart>
+ </div>
+
+ <div class="zoom-container">
+ <span *ngIf="!hasZoom() && availableChart.zoomEnabled" i18n class="description">You can select a part of the graph to zoom in</span>
+
+ <my-button i18n *ngIf="hasZoom()" (click)="resetZoom()">Reset zoom</my-button>
+ </div>
+ </ng-template>
+ </ng-container>
+ </div>
+
+ <div [ngbNavOutlet]="nav"></div>
+ </div>