timeline.js/examples/index.html

16 lines
1.1 KiB
HTML
Raw Normal View History

2014-03-28 01:06:01 +01:00
<html>
<head>
2014-03-29 00:19:12 +01:00
<meta charset="utf-8">
<title>Timeline.js example</title>
2014-03-28 01:06:01 +01:00
<style type="text/css">
body {
background-color: #333;
}
</style>
</head>
2014-03-31 20:33:49 +02:00
<body onload="SVG.init({'id': 'holder', 'height': '100%', 'width': '100%', 'grid': 'both', 'x_axis': true, 'rounded': false, 'x_callback': false}); SVG.addGraph('test', 'red'); SVG.addPoints('test', [{'x':200, 'y':50, 'label':'%x : %y test'},{'x':75, 'y':100, 'label':'%x : %y test2'},{'x':150,'y':25, 'label':'%x : %y test3'},{'x':175, 'y':-200, 'label':'%x : %y test4'},{'x':125, 'y':75, 'label':'%x : %y µg/m<sup>3</sup>'},{'x':225, 'y':-220, 'label':'%x : %y test4'}]); SVG.addGraph('test2', 'blue'); SVG.addPoints('test2', [{'x':180, 'y':50, 'label':'%x : %y test'},{'x':120, 'y':100, 'label':'%x : %y test2'},{'x':160,'y':25, 'label':'%x : %y test3'},{'x':150, 'y':-200, 'label':'%x : %y test4'},{'x':100, 'y':75, 'label':'%x : %y µg/m<sup>3</sup>'},{'x':200, 'y':-220, 'label':'%x : %y test4'}]); SVG.draw();">
2014-03-28 01:06:01 +01:00
<div id="holder"></div>
<script type="text/javascript" src="../timeline.js"></script>
</body>
</html>