Skip to content

Commit 90cc2b0

Browse files
committed
up
1 parent 2d1881e commit 90cc2b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/private/demo-charts/demo-charts.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<div class="cotainer">
22
<div class="row">
33
<div class="col-md-12">
4-
<button (click)="add()" class="btn btn-danger">Add Point!</button>
54
<div [chart]="linechart"></div>
65
</div>
76

87
<div class="col-md-12">
9-
<!-- <button (click)="add()" class="btn btn-danger">Add Point!</button> -->
108
<div [chart]="barchart"></div>
119
</div>
1210
</div>

src/app/private/demo-charts/demo-charts.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export class DemoChartsComponent implements OnInit {
1616
}
1717

1818
ngOnInit() {
19-
19+
setInterval(() => {
20+
this.add();
21+
},500);
2022
}
2123

2224
add() {

0 commit comments

Comments
 (0)