-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo_line_diff.html
31 lines (23 loc) · 5.23 KB
/
demo_line_diff.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ChartLine</title>
<link rel="stylesheet" href="css/demo.css" type="text/css">
<script src="js/raphael-min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/sc.line_diff.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
window.onload = function () {
var json = {"average":[{"values":["8.401185","8.430199","8.438595","8.432222","8.398793","8.376942","8.335909","8.318697","8.317628","8.310254","8.306921","8.306735","8.298330","8.279815","8.291301","8.300901","8.317881","8.338458","8.349737","8.356871","8.367135","8.369607","8.372998","8.377314","8.382374","8.373757","8.368230","8.352687","8.328814","8.303095","8.280791","8.263112","8.257039","8.270491","8.266808","8.271271","8.272590","8.272263","8.266793","8.285021","8.285689","8.296295","8.307510","8.314651","8.312102","8.319580","8.320682","8.310711","8.300960","8.281725","8.259669","8.232193","8.204781","8.178546","8.159956","8.134805","8.106448","8.088262","8.065816","8.054068","8.055166","8.046028","8.028138","8.009677","7.979227","7.946741","7.929858","7.906239","7.888655","7.877133","7.873370","7.867250","7.893060","7.911152","7.919914","7.914304","7.919961","7.917596","7.926943","7.945761","7.954953","7.972764","7.985019","7.972007","7.957869","7.952381","7.932821","7.905413","7.894414","7.906644"],"string":"5日平均"},{"values":["8.312199","8.321626","8.325680","8.330181","8.329575","8.332016","8.333381","8.333592","8.337322","8.336725","8.338469","8.335436","8.331919","8.328631","8.329915","8.332163","8.336008","8.341067","8.343811","8.347059","8.350617","8.352066","8.353415","8.351343","8.347919","8.345131","8.339673","8.336234","8.330662","8.328779","8.325901","8.325113","8.323902","8.321234","8.320090","8.318771","8.318284","8.318689","8.318630","8.318834","8.315729","8.313967","8.312499","8.311613","8.309880","8.306218","8.304182","8.300042","8.296342","8.289750","8.283400","8.276975","8.270461","8.266288","8.261122","8.254203","8.245642","8.236705","8.225353","8.218574","8.210982","8.200329","8.187880","8.173930","8.157416","8.143192","8.127042","8.107626","8.088731","8.070422","8.053950","8.036355","8.024096","8.010769","7.998060","7.984877","7.973909","7.966659","7.960449","7.955221","7.948907","7.947172","7.946010","7.941687","7.935981","7.928350","7.924531","7.921465","7.918634","7.921464"],"string":"25日平均"}],"data":[["2012-02-27","8.443499"],["2012-02-28","8.479071"],["2012-02-29","8.379894"],["2012-03-01","8.381370"],["2012-03-02","8.310129"],["2012-03-05","8.334246"],["2012-03-06","8.273908"],["2012-03-07","8.293831"],["2012-03-08","8.376026"],["2012-03-09","8.273259"],["2012-03-12","8.317580"],["2012-03-13","8.272980"],["2012-03-14","8.251806"],["2012-03-15","8.283451"],["2012-03-16","8.330689"],["2012-03-19","8.365577"],["2012-03-20","8.357881"],["2012-03-21","8.354690"],["2012-03-22","8.339849"],["2012-03-23","8.366358"],["2012-03-26","8.416899"],["2012-03-27","8.370240"],["2012-03-28","8.371644"],["2012-03-29","8.361428"],["2012-03-30","8.391661"],["2012-04-02","8.373813"],["2012-04-03","8.342606"],["2012-04-04","8.293925"],["2012-04-05","8.242063"],["2012-04-06","8.263066"],["2012-04-09","8.262293"],["2012-04-10","8.254215"],["2012-04-11","8.263558"],["2012-04-12","8.309321"],["2012-04-13","8.244654"],["2012-04-16","8.284605"],["2012-04-17","8.260812"],["2012-04-18","8.261924"],["2012-04-19","8.281972"],["2012-04-20","8.335794"],["2012-04-23","8.287942"],["2012-04-24","8.313842"],["2012-04-25","8.317999"],["2012-04-26","8.317680"],["2012-04-27","8.323045"],["2012-04-30","8.325336"],["2012-05-01","8.319352"],["2012-05-02","8.268141"],["2012-05-03","8.268925"],["2012-05-04","8.226872"],["2012-05-07","8.215056"],["2012-05-08","8.181972"],["2012-05-09","8.131080"],["2012-05-10","8.137751"],["2012-05-11","8.133921"],["2012-05-14","8.089303"],["2012-05-15","8.040184"],["2012-05-16","8.040152"],["2012-05-17","8.025519"],["2012-05-18","8.075181"],["2012-05-21","8.094794"],["2012-05-22","7.994492"],["2012-05-23","7.950706"],["2012-05-24","7.933211"],["2012-05-25","7.922934"],["2012-05-28","7.932362"],["2012-05-29","7.910078"],["2012-05-30","7.832609"],["2012-05-31","7.845292"],["2012-06-01","7.865325"],["2012-06-04","7.913546"],["2012-06-05","7.879480"],["2012-06-06","7.961657"],["2012-06-07","7.935750"],["2012-06-08","7.909137"],["2012-06-11","7.885497"],["2012-06-12","7.907764"],["2012-06-13","7.949831"],["2012-06-14","7.982488"],["2012-06-15","8.003225"],["2012-06-18","7.931457"],["2012-06-19","7.996817"],["2012-06-20","8.011108"],["2012-06-21","7.917430"],["2012-06-22","7.932533"],["2012-06-25","7.904017"],["2012-06-26","7.899016"],["2012-06-27","7.874070"],["2012-06-28","7.862436"],["2012-06-29","7.993679"]],"title":{"string":"ユーロ-人民元(EURCNY) 2012-02-27 ~ 2012-06-29 日足チャート(90日)"},"label_left":{"min":"7.832609","max":"8.479071"},"label_bottom":["2012-02-27","2012-03-19","2012-04-09","2012-04-30","2012-05-21","2012-06-11","2012-06-29"]}
json.id = 'show_demo';
json.id_drag = 'show_drag';
var chart = new ChartLine(json)
chart.drag();
};
</script>
</head>
<body>
<p>LineChart</p>
<div id="show_demo"></div>
<div id="show_drag"></div>
</body>
</html>