-
Notifications
You must be signed in to change notification settings - Fork 0
/
word.js
59 lines (54 loc) · 2.54 KB
/
word.js
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
Highcharts.chart('sma', {
chart: {
type: 'line'
},
title: {
text: 'Simple Moving Average(SMA)'
},
subtitle: {
text: '<a href="https://www.alphavantage.co">Source: Alpha Vantage</a>',
style: {
color:'blue'
}
},
xAxis: {
categories: date_array_new,
crosshair: true
},
yAxis: {
// min: 'data_min',
// max: 'data_max',
title: {
text: 'SMA'
}
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
line: {
marker: {
enabled: true,
symbol: 'diamond'
}
},
series: {
label: {
connectorAllowed: false
},
color: 'red'
}
},
series: [{
name: 'SMA',
data: SMA_array,
label: {
enabled: false
}
}]
});