| 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 annotateDisplay: true, | |
| 36 annotateLabel : 'V1:<%=v1%> V2:<%=v2%> V3:<%=v3%> V4:<%=v4%> V5:<%=v5%>
V6:<%=v6%> V7:<%=v7%> V8:<%=v8%> V9:<%=v9%> V10:<%=v10%> V11:<%=v11%> V12:<%=v12
%>' | |
| 37 }; | |
| 38 | |
| 39 window.onload = function() { | |
| 40 var myBar = new Chart(document.getElementById("mycanvas").getContext("2d")).
Line(LineData,opts); | |
| 41 } | |
| 42 </script> | |
| 43 | |
| 44 </body> | |
| 45 </html> | |
| OLD | NEW |