sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.5 KiB

define(["doh", "dojox/charting/Theme", "dojox/charting/themes/PlotKit/blue"],
function(doh, Theme, blue){
doh.register("dojox.charting.tests.Theme", [
function testDefineColor(t){
var args={ num:16, cache:false };
Theme.defineColors(args);
var a=blue.colors;
var s="<table border=1>";
for(var i=0; i<a.length; i++){
if(i%8==0){
if(i>0) s+="</tr>";
s+="<tr>";
}
s+='<td width=16 bgcolor='+a[i]+'>&nbsp;</td>';
}
s+="</tr></table>";
doh.debug(s);
var args={ num:32, cache: false };
Theme.defineColors(args);
var a=blue.colors;
var s="<table border=1 style=margin-top:12px;>";
for(var i=0; i<a.length; i++){
if(i%8==0){
if(i>0) s+="</tr>";
s+="<tr>";
}
s+='<td width=16 bgcolor='+a[i]+'>&nbsp;</td>';
}
s+="</tr></table>";
doh.debug(s);
var args={ saturation:20, num:32, cache:false };
Theme.defineColors(args);
var a=blue.colors;
var s="<table border=1 style=margin-top:12px;>";
for(var i=0; i<a.length; i++){
if(i%8==0){
if(i>0) s+="</tr>";
s+="<tr>";
}
s+='<td width=16 bgcolor='+a[i]+'>&nbsp;</td>';
}
s+="</tr></table>";
doh.debug(s);
var args={ low:10, high:90, num:32, cache: false };
Theme.defineColors(args);
var a=blue.colors;
var s="<table border=1 style=margin-top:12px;>";
for(var i=0; i<a.length; i++){
if(i%8==0){
if(i>0) s+="</tr>";
s+="<tr>";
}
s+='<td width=16 bgcolor='+a[i]+'>&nbsp;</td>';
}
s+="</tr></table>";
doh.debug(s);
}
]);
});