_JSON_lineWithFilledValueRanges.html
2.94 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>amCharts examples</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../amcharts/amcharts.js" type="text/javascript"></script>
<script src="../amcharts/serial.js" type="text/javascript"></script>
<script src="../amcharts/themes/dark.js" type="text/javascript"></script>
<script type="text/javascript">
var chart = AmCharts.makeChart("chartdiv", {
"type": "serial",
"theme": "dark",
"dataDateFormat": "YYYY-MM-DD",
"pathToImages": "../amcharts/images/",
"dataProvider": [{
"date": "2013-11-30",
"value": 104
}, {
"date": "2013-12-01",
"value": 108
}, {
"date": "2013-12-02",
"value": 103
}, {
"date": "2013-12-03",
"value": 105
}, {
"date": "2013-12-04",
"value": 136
}, {
"date": "2013-12-05",
"value": 138
}, {
"date": "2013-12-06",
"value": 113
}, {
"date": "2013-12-07",
"value": 131
}, {
"date": "2013-12-08",
"value": 114
}, {
"date": "2013-12-09",
"value": 124
}],
"valueAxes": [{
"maximum": 140,
"minimum": 100,
"axisAlpha": 0,
"guides": [{
"fillAlpha": 0.1,
"fillColor": "#CC0000",
"lineAlpha": 0,
"toValue": 120,
"value": 0
}, {
"fillAlpha": 0.1,
"fillColor": "#0000cc",
"lineAlpha": 0,
"toValue": 200,
"value": 120
}]
}],
"graphs": [{
"bullet": "round",
"dashLength": 4,
"valueField": "value"
}],
"chartCursor": {
"cursorAlpha": 0
},
"categoryField": "date",
"categoryAxis": {
"parseDates": true
}
});
</script>
</head>
<body style="background-color:#3f3f4f;">
<div id="chartdiv" style="width: 100%; height: 400px;"></div>
</body>
</html>