OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
2 <html> | |
3 <head> | |
4 <meta http-equiv="content-type" content="text/html; charset=windows-1250"> | |
5 <meta name="generator" content="PSPad editor, www.pspad.com"> | |
6 <title></title> | |
7 | |
8 <!--[if lte IE 8]><SCRIPT src='source/excanvas.js'></script><![endif]--><SCRIP
T src='../ChartNew.js'></script> | |
9 </head> | |
10 <body> | |
11 <canvas id="mycanvas" height="450" width="800"></canvas> | |
12 <script> | |
13 var LineData = { | |
14 labels : ["January","February","March","April","May","June","July"], | |
15 datasets : [ | |
16 { | |
17 strokeColor : "rgba(220,220,220,1)", | |
18 pointColor : "rgba(220,220,220,1)", | |
19 pointStrokeColor : "#fff", | |
20 data : [250,1.559,1.590,1.581,1.556,1.555,1.540], | |
21 title : "First data" | |
22 }, | |
23 { | |
24 strokeColor : "rgba(151,187,205,1)", | |
25 pointColor : "rgba(151,187,205,1)", | |
26 pointStrokeColor : "#fff", | |
27 data : [28,1.548,1.540,1.519,1.596,1.527,1.580], | |
28 title : "Second data" | |
29 } | |
30 ] | |
31 } | |
32 | |
33 var opts = { | |
34 logarithmic: true | |
35 } | |
36 | |
37 window.onload = function() { | |
38 var myBar = new Chart(document.getElementById("mycanvas").getContext("2d")).
Line(LineData,opts); | |
39 } | |
40 </script> | |
41 | |
42 </body> | |
43 </html> | |
OLD | NEW |