-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdvf_test.html
62 lines (58 loc) · 1.11 KB
/
dvf_test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> dashboard </title>
<style type="text/css">
body{
padding:0px;
margin:0px;
width:950px;
height:600px;
}
.chart{
float:left;
}
</style>
</head>
<body>
<div id="chart" style="width:950px;height:600px;" class="chart"></div>
<script src="http://cdataportal.sh.ctripcorp.com:9999/DVF/CData-1.0.js"></script>
<script>
window.onload = function(){
CData().dashboard({
env:'product',
bases: {
"startTime": "2014-10-10 11:53:00",
"endTime": "2014-10-10 12:58:00",
"interval": "1m",
"metric": "ubt.ol.jserror",
"maxcount": 100,
"filters":{
"pid":["100101991"]
}
},
"namespace": null,
"statistics": "count",
start: function() {},
end: function() {
setTimeout(function(){
document.title='ok';
},1000)
}
})
.line({
id: "chart",
params: {
xAxis: {
type: "datetime"
},
title: {
text: "line展示(多条线)"
}
}
})
}
</script>
</body>
</html>