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

Unified Diff: bower_components/chartnewjs/Samples/function_gauss.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/function_gauss.html
diff --git a/bower_components/chartnewjs/Samples/function_gauss.html b/bower_components/chartnewjs/Samples/function_gauss.html
deleted file mode 100644
index 745112bfaa017e83e217288b135df2e84410171c..0000000000000000000000000000000000000000
--- a/bower_components/chartnewjs/Samples/function_gauss.html
+++ /dev/null
@@ -1,74 +0,0 @@
- <!doctype html>
-
-<!--[if lte IE 8]><SCRIPT src='source/excanvas.js'></script><![endif]--><SCRIPT src='../ChartNew.js'></script>
-<SCRIPT src='../Add-ins/format.js'></script>
-
-<SCRIPT>
-
-defCanvasWidth=1200;
-defCanvasHeight=600;
-
-
-var mydata1 = {
- labels : ["-3",-2,-1,"0",1,2,"3"],
- xBegin : -3,
- xEnd : 3,
- datasets : [
- {
- strokeColor : "rgba(220,220,220,1)",
- data : [],
- xPos : [],
- title : "Sinus"
- }
- ]
-}
-var gauss_var=1;
-var gauss_mean=0;
-
-var nbiter=400;
-for(var i=0;i<nbiter;i++)
-{
- mydata1.datasets[0].xPos[i]=mydata1.xBegin+i*(mydata1.xEnd-mydata1.xBegin)/nbiter;
- mydata1.datasets[0].data[i]=(1/(gauss_var*Math.sqrt(2*Math.PI))) * Math.exp(-((mydata1.datasets[0].xPos[i]-gauss_mean)*(mydata1.datasets[0].xPos[i]-gauss_mean))/(2*gauss_var));
-}
-
-
-var opt1 = {
- canvasBorders : true,
- canvasBordersWidth : 3,
- canvasBordersColor : "black",
- graphTitle : "Gauss Function - (0,1)",
- legend : true,
- datasetFill : false,
- annotateDisplay : true,
- pointDot :false,
- animationLeftToRight : true,
- animationEasing: "linear",
- yAxisMinimumInterval : 0.02,
- 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_Line1\" height=\""+defCanvasHeight+"\" width=\""+defCanvasWidth+"\"></canvas>");
-window.onload = function() {
- var myLine = new Chart(document.getElementById("canvas_Line1").getContext("2d")).Line(mydata1,opt1);
-}
- </script>
- </body>
-</html>
« no previous file with comments | « bower_components/chartnewjs/Samples/function_X-1.html ('k') | bower_components/chartnewjs/Samples/function_sinus_cosinus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698