forked from electriciteam/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecondGraph.html
72 lines (57 loc) · 1.35 KB
/
secondGraph.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
66
67
68
<!DOCTYPE HTML>
<html>
<body>
<p>Before the script...</p>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<!-- Part 1, Sandro's Graph-->
<!-- Part 2, Area Graph-->
<!-- Part 3, Coin Graph-->
<script>
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'ELC Balance by Date'
},
xAxis: {
categories: [
"Feb 1",
"Feb 2",
"Feb 3",
"Feb 4"
],
crosshair: true
},
yAxis: {
min: 0,
title: {
text: 'ELC Balance'
}
},
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: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [ {
name: 'Balance',
data: [10,20,15,7],
color: '#76DA35'
}]
});
</script>
<p>...After the script.</p>
</body>
</html>