Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / charting / themes / Renkoo.js @ 11

History | View | Annotate | Download (2.2 KB)

1
/*
2
        Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
3
        Available via Academic Free License >= 2.1 OR the modified BSD license.
4
        see: http://dojotoolkit.org/license for details
5
*/
6

    
7

    
8
if(!dojo._hasResource["dojox.charting.themes.Renkoo"]){
9
dojo._hasResource["dojox.charting.themes.Renkoo"]=true;
10
dojo.provide("dojox.charting.themes.Renkoo");
11
dojo.require("dojox.gfx.gradutils");
12
dojo.require("dojox.charting.Theme");
13
(function(){
14
var dc=dojox.charting,_1=dc.themes,_2=dc.Theme,g=_2.generateGradient,_3={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:150};
15
_1.Renkoo=new dc.Theme({chart:{fill:"#123666",pageStyle:{backgroundColor:"#123666",backgroundImage:"none",color:"#95afdb"}},plotarea:{fill:"#123666"},axis:{stroke:{color:"#95afdb",width:1},tick:{color:"#95afdb",position:"center",font:"normal normal normal 7pt Lucida Grande, Helvetica, Arial, sans-serif",fontColor:"#95afdb"}},series:{stroke:{width:2.5,color:"#123666"},outline:null,font:"normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif",fontColor:"#95afdb"},marker:{stroke:{width:2.5,color:"#ccc"},outline:null,font:"normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif",fontColor:"#95afdb"},seriesThemes:[{fill:g(_3,"#e7e391","#f8f7de")},{fill:g(_3,"#ffb6b6","#ffe8e8")},{fill:g(_3,"#bcda7d","#eef7da")},{fill:g(_3,"#d5d5d5","#f4f4f4")},{fill:g(_3,"#c1e3fd","#e4f3ff")}],markerThemes:[{fill:"#fcfcf3",stroke:{color:"#e7e391"}},{fill:"#fff1f1",stroke:{color:"#ffb6b6"}},{fill:"#fafdf4",stroke:{color:"#bcda7d"}},{fill:"#fbfbfb",stroke:{color:"#d5d5d5"}},{fill:"#f3faff",stroke:{color:"#c1e3fd"}}]});
16
_1.Renkoo.next=function(_4,_5,_6){
17
if("slice,column,bar".indexOf(_4)==-1){
18
var s=this.seriesThemes[this._current%this.seriesThemes.length];
19
s.fill.space="plot";
20
s.stroke={width:2,color:s.fill.colors[0].color};
21
if(_4=="line"||_4=="area"){
22
s.stroke.width=4;
23
}
24
var _7=_2.prototype.next.apply(this,arguments);
25
delete s.stroke;
26
s.fill.space="shape";
27
return _7;
28
}
29
return _2.prototype.next.apply(this,arguments);
30
};
31
_1.Renkoo.post=function(_8,_9){
32
_8=_2.prototype.post.apply(this,arguments);
33
if((_9=="slice"||_9=="circle")&&_8.series.fill&&_8.series.fill.type=="radial"){
34
_8.series.fill=dojox.gfx.gradutils.reverse(_8.series.fill);
35
}
36
return _8;
37
};
38
})();
39
}