-
Notifications
You must be signed in to change notification settings - Fork 116
/
app.component.html
65 lines (59 loc) · 1.69 KB
/
app.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<div style="width: 100%; float: left;">
<h2>Demo #1: Highcharts with a basic editor</h2>
<div style="width:30%; float: left;">
<button (click)="updateInputChart()">Update chart</button>
<br/>
<textarea rows="16" cols="50"
[(ngModel)]="optFromInputString"
></textarea>
<br/>
<button (click)="toggleSeriesType()">1st series type toggle</button>
</div>
<div style="width:65%; float: left;">
<highcharts-chart
[Highcharts]="Highcharts"
[options]="optFromInput"
[(update)]="updateFromInput"
style="width: 100%; height: 350px; display: block;"
></highcharts-chart>
</div>
</div>
<br/>
<hr/>
<div style="width: 100%; float: left;">
<h2>Demo #2: Highstock with simple updates</h2>
<div style="width:30%; float: left;">
<p>Chart title text: </p>
<input
[(ngModel)]="charts[usedIndex].hcOptions.title.text"
(ngModelChange)="titleChange($event)"
>
<br/>
<p>Data sets:</p>
<button *ngFor="let i of [0,1,2]"
(click)="usedIndex = i">
{{i+1}}
</button>
</div>
<div style="width:65%; float: left;">
<highcharts-chart
[Highcharts]="Highcharts"
[constructorType]="'stockChart'"
[options]="charts[usedIndex].hcOptions"
[callbackFunction]="charts[0].hcCallback"
[(update)]="updateDemo2"
style="width: 100%; height: 350px; display: block;"
></highcharts-chart>
</div>
</div>
<br/>
<hr/>
<div style="width: 100%; float: left;">
<h2>Demo #3: Highmaps map chart</h2>
<highcharts-chart
[Highcharts]="Highcharts"
[constructorType]="'mapChart'"
[options]="chartMap"
style="width: 100%; height: 650px; display: block;"
></highcharts-chart>
</div>