Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: polymer_0.4.0/bower_components/chartnewjs/Samples/UpdateChart.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 2
3 <!--[if lte IE 8]><SCRIPT src='source/excanvas.js'></script><![endif]--><SCRIPT src='../ChartNew.js'></script> 3 <!--[if lte IE 8]><SCRIPT src='source/excanvas.js'></script><![endif]--><SCRIPT src='../ChartNew.js'></script>
4 <SCRIPT src='../Add-ins/format.js'></script> 4 <SCRIPT src='../Add-ins/format.js'></script>
5 5
6 <SCRIPT> 6 <SCRIPT>
7 7
8 function setColor(area,data,config,i,j,animPct,value) 8 function setColor(area,data,config,i,j,animPct,value)
9 { 9 {
10 if(value > 35)return("rgba(220,0,0,"+animPct); 10 if(value > 35)return("rgba(220,0,0,"+animPct);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 document.write("<canvas id=\"canvas_Line\" height=\""+defCanvasHeight+"\" wi dth=\""+defCanvasWidth+"\"></canvas>"); 139 document.write("<canvas id=\"canvas_Line\" height=\""+defCanvasHeight+"\" wi dth=\""+defCanvasWidth+"\"></canvas>");
140 window.onload = function() { 140 window.onload = function() {
141 var myLine = new Chart(document.getElementById("canvas_Line").getContext ("2d")).Line(mydata,opt); 141 var myLine = new Chart(document.getElementById("canvas_Line").getContext ("2d")).Line(mydata,opt);
142 setTimeout(function (){updt(document.getElementById("canvas_Line").getCo ntext("2d"),mydata,opt);}, 2000+Math.random()*2000); 142 setTimeout(function (){updt(document.getElementById("canvas_Line").getCo ntext("2d"),mydata,opt);}, 2000+Math.random()*2000);
143 143
144 } 144 }
145 </script> 145 </script>
146 </body> 146 </body>
147 </html> 147 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698