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

Unified Diff: bower_components/chartnewjs/Samples/animation_HorizontalStackedBar.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 side-by-side diff with in-line comments
Download patch
Index: bower_components/chartnewjs/Samples/animation_HorizontalStackedBar.html
diff --git a/bower_components/chartnewjs/Samples/animation_HorizontalStackedBar.html b/bower_components/chartnewjs/Samples/animation_HorizontalStackedBar.html
deleted file mode 100644
index 2aa62dda1430ef5fc573868424225177ed1cc463..0000000000000000000000000000000000000000
--- a/bower_components/chartnewjs/Samples/animation_HorizontalStackedBar.html
+++ /dev/null
@@ -1,148 +0,0 @@
- <!doctype html>
-
-<!--[if lte IE 8]><SCRIPT src='source/excanvas.js'></script><![endif]--><SCRIPT src='../ChartNew.js'></script>
-
-
-<SCRIPT>
-
-function setColor(area,data,config,i,j,animPct,value)
-{
- if(value > 35)return("rgba(220,0,0,"+animPct);
- else return("rgba(0,220,0,"+animPct);
-
-}
-
-var charJSPersonnalDefaultOptions = { decimalSeparator : "," , thousandSeparator : ".", roundNumber : "none", graphTitleFontSize: 2 };
-
-defCanvasWidth=600;
-defCanvasHeight=300;
-
-
-var mydata1 = {
- labels : ["January","February","March","April","May","June","July"],
-// labels : ["January"],
- datasets : [
- {
- fillColor : "rgba(220,220,220,0.5)",
- strokeColor : "rgba(220,220,220,1)",
- pointColor : "rgba(220,220,220,1)",
- pointstrokeColor : "yellow",
- data : [95,53,99,,73,27,82],
-// data : [40],
-
- title : "2014"
- },
- {
- fillColor : "rgba(151,187,205,0.5)",
- strokeColor : "rgba(151,187,205,1)",
- pointColor : "green",
- pointstrokeColor : "yellow",
- data : [35,43,59,,31,50,66],
-// data : [35],
- title : "2013"
- }
- ]
-}
-
-var startWithDataset =1;
-var startWithData =1;
-
-var opt1 = {
- animationStartWithDataset : startWithDataset,
- animationStartWithData : startWithData,
- animationSteps : 200,
- canvasBorders : true,
- canvasBordersWidth : 3,
- canvasBordersColor : "black",
- graphTitle : "default animation",
- legend : true,
- inGraphDataShow : true,
- annotateDisplay : true,
- graphTitleFontSize: 18
-
-}
-
-var opt2 = {
- animationStartWithDataset : startWithDataset,
- animationStartWithData : startWithData,
- animationLeftToRight : true,
- animationSteps : 200,
- animationEasing: "linear",
- canvasBorders : true,
- canvasBordersWidth : 3,
- canvasBordersColor : "black",
- graphTitle : "animationLeftToRight=true",
- legend : true,
- inGraphDataShow : true,
- annotateDisplay : true,
- graphTitleFontSize: 18
-
-}
-
-var opt3 = {
- animationStartWithDataset : startWithDataset,
- animationStartWithData : startWithData,
- animationByDataset : true,
- animationSteps : 200,
- animationEasing: "linear",
- canvasBorders : true,
- canvasBordersWidth : 3,
- canvasBordersColor : "black",
- graphTitle : "animationByDataset=true",
-
- legend : true,
- inGraphDataShow : true,
- annotateDisplay : true,
- graphTitleFontSize: 18
-}
-
-var opt4 = {
- animationStartWithDataset : startWithDataset,
- animationStartWithData : startWithData,
- animationLeftToRight : true,
- animationByDataset : true,
- animationSteps : 200,
- animationEasing: "linear",
- canvasBorders : true,
- canvasBordersWidth : 3,
- canvasBordersColor : "black",
- graphTitle : "animationByDataset=true & animationLeftToRight=true ",
- legend : true,
- inGraphDataShow : true,
- annotateDisplay : true,
- graphTitleFontSize: 18
-}
-
-
-</SCRIPT>
-
-
-<html>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- <head>
- <title>Demo ChartNew.js</title>
- </head>
- <body>
-
- <center>
- <FONT SIZE=6><B>Demo of ChartNew.js !</B></FONT> <BR>
-
- <script>
-
- document.write("<canvas id=\"canvas_HorizontalStackedBar1\" height=\""+defCanvasHeight+"\" width=\""+defCanvasWidth+"\"></canvas>");
- document.write("<canvas id=\"canvas_HorizontalStackedBar2\" height=\""+defCanvasHeight+"\" width=\""+defCanvasWidth+"\"></canvas>");
- document.write("<canvas id=\"canvas_HorizontalStackedBar3\" height=\""+defCanvasHeight+"\" width=\""+defCanvasWidth+"\"></canvas>");
- document.write("<canvas id=\"canvas_HorizontalStackedBar4\" height=\""+defCanvasHeight+"\" width=\""+defCanvasWidth+"\"></canvas>");
-window.onload = function() {
-
-
- var myHorizontalStackedBar = new Chart(document.getElementById("canvas_HorizontalStackedBar1").getContext("2d")).HorizontalStackedBar(mydata1,opt1);
- var myHorizontalStackedBar = new Chart(document.getElementById("canvas_HorizontalStackedBar2").getContext("2d")).HorizontalStackedBar(mydata1,opt2);
- var myHorizontalStackedBar = new Chart(document.getElementById("canvas_HorizontalStackedBar3").getContext("2d")).HorizontalStackedBar(mydata1,opt3);
- var myHorizontalStackedBar = new Chart(document.getElementById("canvas_HorizontalStackedBar4").getContext("2d")).HorizontalStackedBar(mydata1,opt4);
-
-}
-
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698