-
-
Save uno-de-piera/2ae0c473f829eb369013210956b656ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-6"> | |
<div style="display: block;"> | |
<canvas baseChart width="400" height="400" | |
[datasets]="lineChartData" | |
[labels]="lineChartLabels" | |
[options]="lineChartOptions" | |
[colors]="lineChartColors" | |
[legend]="lineChartLegend" | |
[chartType]="lineChartType" | |
(chartHover)="chartHovered($event)" | |
(chartClick)="chartClicked($event)"></canvas> | |
</div> | |
</div> | |
<div class="col-md-6" style="margin-bottom: 10px"> | |
<table class="table table-responsive table-condensed"> | |
<tr> | |
<th *ngFor="let label of lineChartLabels">{{label}}</th> | |
</tr> | |
<tr *ngFor="let d of lineChartData"> | |
<td *ngFor="let label of lineChartLabels; let j=index">{{d && d.data[j]}}</td> | |
</tr> | |
</table> | |
<button (click)="randomize()">CLICK</button> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment