| 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 BarLineData = { | |
| 13 labels : ["January","February","March","April","May","June","July"], | |
| 14 datasets : [ | |
| 15 { | |
| 16 type: "Line", | |
| 17 fill: false, | |
| 18 strokeColor : "rgb(230, 14, 14)", | |
| 19 pointColor : "rgb(205, 151, 155)", | |
| 20 pointStrokeColor : "#f56691", | |
| 21 data : [0.30,0.44,0.42,0.19,0.90,0.37,1.20], | |
| 22 title : "line 1" | |
| 23 }, | |
| 24 { | |
| 25 fillColor : "rgba(220,220,220,0.5)", | |
| 26 strokeColor : "rgba(220,220,220,1)", | |
| 27 pointColor : "rgba(220,220,220,1)", | |
| 28 pointStrokeColor : "#fff", | |
| 29 data : [0.65,0.59,0.90,0.81,0.56,0.55,0.40], | |
| 30 title : "Bar 1" | |
| 31 }, | |
| 32 { | |
| 33 fillColor : "rgba(151,187,205,0.5)", | |
| 34 strokeColor : "rgba(151,187,205,1)", | |
| 35 pointColor : "rgba(151,187,205,1)", | |
| 36 pointStrokeColor : "#fff", | |
| 37 data : [0.28,0.48,0.40,0.19,0.96,0.27,1.00], | |
| 38 title : "Bar 2" | |
| 39 }, | |
| 40 { | |
| 41 type: "Line", | |
| 42 fill: false, | |
| 43 fillColor : "rgba(151, 205, 172, 0.5)", | |
| 44 strokeColor : "rgb(87, 147, 106)", | |
| 45 pointColor : "rgb(151, 205, 172)", | |
| 46 pointStrokeColor : "#fff", | |
| 47 data : [0.42,0.58,0.44,0.22,0.84,0.17,0.70], | |
| 48 title : "Line 3" | |
| 49 }, | |
| 50 ] | |
| 51 } | |
| 52 | |
| 53 var opts= {}; | |
| 54 | |
| 55 window.onload = function() { | |
| 56 var myBar = new Chart(document.getElementById("mycanvas").getContext("2d")).
Bar(BarLineData,opts); | |
| 57 } | |
| 58 </script> | |
| 59 | |
| 60 </body> | |
| 61 </html> | |
| OLD | NEW |