Added more updates
[soho-sigint.git] / client-freqwatch / Chart.js / samples / bar2.html
diff --git a/client-freqwatch/Chart.js/samples/bar2.html b/client-freqwatch/Chart.js/samples/bar2.html
new file mode 100644 (file)
index 0000000..2df1948
--- /dev/null
@@ -0,0 +1,39 @@
+<!doctype html>
+<html>
+       <head>
+               <title>Bar Chart</title>
+               <script src="../Chart.js"></script>
+       </head>
+       <body>
+               <div style="width: 50%">
+                       <canvas id="canvas" height="450" width="600"></canvas>
+               </div>
+
+
+       <script>
+       var barChartData = {
+               labels : ["111993054","115183158","115204859","120000865","124341141","124992183","125013884"],
+               datasets : [
+                       {
+                               fillColor : "rgba(151,187,205,0.5)",
+                               strokeColor : "rgba(151,187,205,0.8)",
+                               highlightFill : "rgba(151,187,205,0.75)",
+                               highlightStroke : "rgba(151,187,205,1)",
+                               data : ["5639","3","5727","8","2","172","5727"]
+                       }
+               ]
+
+       }
+       window.onload = function(){
+               var ctx = document.getElementById("canvas").getContext("2d");
+               window.myBar = new Chart(ctx).Bar(barChartData, {
+                        animation: false,
+                        scaleLineWidth: 1,
+                        barStrokeWidth : 0.01,
+                       responsive : false
+               });
+       }
+
+       </script>
+       </body>
+</html>