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 <SCRIPT src='../mathFunctions.js'></script> | |
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="600" width="800"></canvas> | |
12 <script> | |
13 var BarData = { | |
14 labels : ["January","February","March","April","May","June","July"], | |
15 datasets : [ | |
16 { | |
17 fillColor : "rgba(129, 172, 123, 0.5)", | |
18 strokeColor : "rgba(129, 172, 123, 1)", | |
19 pointColor : "rgba(129, 172, 123, 1)", | |
20 pointStrokeColor : "#fff", | |
21 drawMathDeviation: "stddev", | |
22 deviationStrokeColor: "#000", | |
23 deviationWidth: 5, | |
24 data : ["60","70","75","65",,"80","0"], | |
25 title : "bar 1" | |
26 }, | |
27 { | |
28 fillColor : "rgba(29, 72, 223, 0.5)", | |
29 strokeColor : "rgba(29, 72, 223, 1)", | |
30 pointColor : "rgba(29, 72, 223, 1)", | |
31 pointStrokeColor : "#fff", | |
32 drawMathLine: "mean", | |
33 mathLineStrokeColor: "#f00", | |
34 data : [10,20,30,40,50,60,70], | |
35 title : "bar 2" | |
36 } | |
37 ] | |
38 } | |
39 | |
40 var opts= {inGraphDataShow:true, inGraphDataTmpl: '<%=meanDif(2)%>', bezierCurv
e: false, savePng: false, legend: true | |
41 }; | |
42 | |
43 window.onload = function() { | |
44 var myBar = new Chart(document.getElementById("mycanvas").getContext("2d")).
Bar(BarData,opts); | |
45 } | |
46 </script> | |
47 | |
48 </body> | |
49 </html> | |
OLD | NEW |