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 <!--[if lte IE 8]><SCRIPT src='source/excanvas.js'></script><![endif]--><SCRIP
T src='../ChartNew.js'></script> | |
8 </head> | |
9 <body> | |
10 <canvas id="mycanvas" height="600" width="800"></canvas> | |
11 <script> | |
12 var LineData = { | |
13 labels : ["January","February","March","April","May","June","July"], | |
14 datasets : [ | |
15 { | |
16 fillColor : "rgba(129, 172, 123, 0.5)", | |
17 strokeColor : "rgba(129, 172, 123, 1)", | |
18 pointColor : "rgba(129, 172, 123, 1)", | |
19 pointStrokeColor : "#fff", | |
20 data : [30,44,42,-90,90,-37,20], | |
21 title : "line 1" | |
22 }, | |
23 { | |
24 fillColor : "rgba(159, 90, 90, 0.5)", | |
25 strokeColor : "rgba(159, 90, 90, 1)", | |
26 pointColor : "rgba(159, 90, 90, 1)", | |
27 pointStrokeColor : "#fff", | |
28 data : [65,59,90,81,56,55,40], | |
29 title : "Line 2" | |
30 } | |
31 ] | |
32 } | |
33 | |
34 var opts= {}; | |
35 | |
36 window.onload = function() { | |
37 var myBar = new Chart(document.getElementById("mycanvas").getContext("2d")).
Line(LineData,opts); | |
38 } | |
39 </script> | |
40 | |
41 </body> | |
42 </html> | |
OLD | NEW |