diff options
Diffstat (limited to 'includes/js/dojox/charting/tests/test_scaler.html')
-rw-r--r-- | includes/js/dojox/charting/tests/test_scaler.html | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/includes/js/dojox/charting/tests/test_scaler.html b/includes/js/dojox/charting/tests/test_scaler.html deleted file mode 100644 index f717f83..0000000 --- a/includes/js/dojox/charting/tests/test_scaler.html +++ /dev/null @@ -1,97 +0,0 @@ -<html> -<head> -<title>Scaler/tick generator</title> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<style type="text/css"> - @import "../../../dojo/resources/dojo.css"; - @import "../../../dijit/tests/css/dijitTests.css"; -</style> -<!--
-The next line should include Microsoft's Silverligth.js, if you plan to use the silverlight backend
-<script type="text/javascript" src="Silverlight.js"></script>
--->
-<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug: true"></script> -<script type="text/javascript" src="../scaler.js"></script> -<script type="text/javascript"> - -dojo.require("dojox.charting.scaler"); - -calc = function(){ - var min = parseFloat(dojo.byId("imin").value); - var max = parseFloat(dojo.byId("imax").value); - var span = parseFloat(dojo.byId("ispan").value); - - var o = dojox.charting.scaler( - min, max, span, { - fixLower: dojo.byId("ifl").value, - fixUpper: dojo.byId("ifu").value, - natural: Boolean(dojo.byId("inat").checked) - } - ); - - dojo.byId("imin").value = min; - dojo.byId("imax").value = max; - dojo.byId("ispan").value = span; - - dojo.byId("olb").innerHTML = o.bounds.lower; - dojo.byId("oub").innerHTML = o.bounds.upper; - - dojo.byId("omajt").innerHTML = o.major.tick; - dojo.byId("omajs").innerHTML = o.major.start; - dojo.byId("omajc").innerHTML = o.major.count; - dojo.byId("omajp").innerHTML = o.major.prec; - - dojo.byId("omint").innerHTML = o.minor.tick; - dojo.byId("omins").innerHTML = o.minor.start; - dojo.byId("ominc").innerHTML = o.minor.count; - dojo.byId("ominp").innerHTML = o.minor.prec; - - dojo.byId("omict").innerHTML = o.micro.tick; - dojo.byId("omics").innerHTML = o.micro.start; - dojo.byId("omicc").innerHTML = o.micro.count; - dojo.byId("omicp").innerHTML = o.micro.prec; - - dojo.byId("oscale").innerHTML = o.scale; -}; - -</script> -</head> -<body> -<h1>Scaler/tick generator</h1> -<h2>Input</h2> -<table> - <tr><th>Name</th><th>Value</th></tr> - <tr><td>min</td><td><input type="text" id="imin" /></td></tr> - <tr><td>max</td><td><input type="text" id="imax" /></td></tr> - <tr><td>span</td><td><input type="text" id="ispan" /></td></tr> - <tr><td>natural</td><td><input type="checkbox" id="inat" /></td></tr> - <tr><td>fixLower</td><td><input type="text" id="ifl" /></td></tr> - <tr><td>fixUpper</td><td><input type="text" id="ifu" /></td></tr> -</table> -<p><button onclick="calc()">Calculate!</button></p> -<h2>Output</h2> -<table> - <tr><th>Name</th><th>Value</th></tr> - - <tr><td>lowerBound</td><td><span id="olb"> </span></td></tr> - <tr><td>upperBound</td><td><span id="oub"> </span></td></tr> - - <tr><td>major.tick</td><td><span id="omajt"> </span></td></tr> - <tr><td>major.start</td><td><span id="omajs"> </span></td></tr> - <tr><td>major.count</td><td><span id="omajc"> </span></td></tr> - <tr><td>major.prec</td><td><span id="omajp"> </span></td></tr> - - <tr><td>minor.tick</td><td><span id="omint"> </span></td></tr> - <tr><td>minor.start</td><td><span id="omins"> </span></td></tr> - <tr><td>minor.count</td><td><span id="ominc"> </span></td></tr> - <tr><td>minor.prec</td><td><span id="ominp"> </span></td></tr> - - <tr><td>micro.tick</td><td><span id="omict"> </span></td></tr> - <tr><td>micro.start</td><td><span id="omics"> </span></td></tr> - <tr><td>micro.count</td><td><span id="omicc"> </span></td></tr> - <tr><td>micro.prec</td><td><span id="omicp"> </span></td></tr> - - <tr><td>scale</td><td><span id="oscale"> </span></td></tr> -</table> -</body> -</html> |