/
jquerymobile_jqplot_test_2.htm
38 lines (38 loc) · 1.32 KB
/
jquerymobile_jqplot_test_2.htm
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta http-equiv="cache-control" content="no-cache">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/jqplot@1.0.9/jquery.jqplot.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jqplot@1.0.9/jquery.jqplot.min.js"></script>
</head>
<style>
</style>
<body>
<!-- 第一頁頁面 -->
<section data-role="page" id="page1">
<header data-role="header">
<h1>jqPlot 折線圖</h1>
</header>
<article data-role="content">
<div id="chart"></div>
</article>
<footer data-role="footer">
<h3>頁尾</h3>
</footer>
</section>
<script>
$(function(){
var data=[[100, 100, 75, 99, 89, 100, 85, 95, 77],
[78, 55, 66, 60, 80, 75, 80, 83, 71],
[45, 49, 53, 56, 72, 50, 75, 78, 67]];
$.jqplot('chart', data);
});
</script>
</body>
</html>