Sha256: 7dd46c389dbd2924520d7408a5ea68c7c99cad0963d1b892d99ae12214abe503
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
<!doctype html> <html> <head> <title>Line Chart</title> <script src="../Chart.js"></script> </head> <body> <div style="width:30%"> <div> <canvas id="canvas" height="450" width="600"></canvas> </div> </div> <script> var randomScalingFactor = function(){ return Math.round(Math.random()*100)}; var lineChartData = { labels : ["January","February","March","April","May","June","July"], datasets : [ { label: "My First dataset", fillColor : "rgba(220,220,220,0.2)", strokeColor : "rgba(220,220,220,1)", pointColor : "rgba(220,220,220,1)", pointStrokeColor : "#fff", pointHighlightFill : "#fff", pointHighlightStroke : "rgba(220,220,220,1)", data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()] }, { label: "My Second dataset", fillColor : "rgba(151,187,205,0.2)", strokeColor : "rgba(151,187,205,1)", pointColor : "rgba(151,187,205,1)", pointStrokeColor : "#fff", pointHighlightFill : "#fff", pointHighlightStroke : "rgba(151,187,205,1)", data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()] } ] } window.onload = function(){ var ctx = document.getElementById("canvas").getContext("2d"); window.myLine = new Chart(ctx).Line(lineChartData, { responsive: true }); } </script> </body> </html>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
radius-rails-3.1.4 | app/assets/components/Chart.js/samples/line.html |
jinda_lte-0.0.1 | lib/generators/jinda_lte/templates/app/assets/jinda_assets/bower_components/chart.js/samples/line.html |