summaryrefslogtreecommitdiff
path: root/www/lib/chart.horizontalbar/samples/horizontal-bar.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/lib/chart.horizontalbar/samples/horizontal-bar.html')
-rw-r--r--www/lib/chart.horizontalbar/samples/horizontal-bar.html52
1 files changed, 0 insertions, 52 deletions
diff --git a/www/lib/chart.horizontalbar/samples/horizontal-bar.html b/www/lib/chart.horizontalbar/samples/horizontal-bar.html
deleted file mode 100644
index b7b92ed3..00000000
--- a/www/lib/chart.horizontalbar/samples/horizontal-bar.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>Horizontal Bar Chart</title>
- <script src="http://www.chartjs.org/assets/Chart.min.js"></script>
- <script src="../Chart.HorizontalBar.js"></script>
- </head>
- <body>
- <div style="width: 50%">
- <canvas id="canvas" height="450" width="600"></canvas>
- </div>
-
-
- <script>
-
- var randomScalingFactor = function(){
- return Math.round(Math.random()*100);
- };
-
- var barChartData = {
- labels : ["January","February","March","April","May","June","July"],
- datasets : [
- {
- fillColor : "rgba(220,220,220,0.5)",
- strokeColor : "rgba(220,220,220,0.8)",
- highlightFill: "rgba(220,220,220,0.75)",
- highlightStroke: "rgba(220,220,220,1)",
- data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
- },
- {
- 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 : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
- }
- ]
-
- };
-
- window.onload = function(){
- var ctx = document.getElementById("canvas").getContext("2d");
-
- var chart = new Chart(ctx).HorizontalBar(barChartData, {
- responsive: true,
- barShowStroke: false
- });
- };
-
- </script>
- </body>
-</html>