forked from 2557606319/H5-Kline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
36 lines (35 loc) · 1.3 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#B4E6FB">
<title>行情</title>
</head>
<style type="text/css">
body{margin: 0;padding: 0;}
.Kline-div{
position: fixed;width: 100%;
bottom: 0rem;top: 0;
}
.Kline-div .m-line{height: 49%;width: 100%;margin-bottom: 1%;}
.Kline-div .K-line{height: 50%;width: 100%;}
</style>
<body>
<div id="Kline-div" class="Kline-div">
<div id="m-line" class="m-line"></div>
<div id="k-content" class="K-line"></div>
</div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/echarts.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/tmpData.js" type="text/javascript" charset="utf-8"></script>
<script src="js/k-line.js" type="text/javascript" charset="utf-8"></script>
<script>
var mChart = echarts.init(document.getElementById('m-line'));
mChart.setOption(initMOption(mdata,'us'));
var kChart = echarts.init(document.getElementById('k-content'));
kChart.setOption(initKOption(kdata));
</script>
</body>
</html>