root / trunk / web / dojo / dojox / charting / themes / Tom.js @ 11
History | View | Annotate | Download (2.17 KB)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
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.Tom"]){ |
||
9 | dojo._hasResource["dojox.charting.themes.Tom"]=true; |
||
10 | dojo.provide("dojox.charting.themes.Tom");
|
||
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:100}; |
||
15 | _1.Tom=new dc.Theme({chart:{fill:"#181818",stroke:{color:"#181818"},pageStyle:{backgroundColor:"#181818",backgroundImage:"none",color:"#eaf2cb"}},plotarea:{fill:"#181818"},axis:{stroke:{color:"#a0a68b",width:1},tick:{color:"#888c76",position:"center",font:"normal normal normal 7pt Helvetica, Arial, sans-serif",fontColor:"#888c76"}},series:{stroke:{width:2.5,color:"#eaf2cb"},outline:null,font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#eaf2cb"},marker:{stroke:{width:1.25,color:"#eaf2cb"},outline:{width:1.25,color:"#eaf2cb"},font:"normal normal normal 8pt Helvetica, Arial, sans-serif",fontColor:"#eaf2cb"},seriesThemes:[{fill:g(_3,"#bf9e0a","#ecc20c")},{fill:g(_3,"#73b086","#95e5af")},{fill:g(_3,"#c7212d","#ed2835")},{fill:g(_3,"#87ab41","#b6e557")},{fill:g(_3,"#b86c25","#d37d2a")}],markerThemes:[{fill:"#bf9e0a",stroke:{color:"#ecc20c"}},{fill:"#73b086",stroke:{color:"#95e5af"}},{fill:"#c7212d",stroke:{color:"#ed2835"}},{fill:"#87ab41",stroke:{color:"#b6e557"}},{fill:"#b86c25",stroke:{color:"#d37d2a"}}]}); |
||
16 | _1.Tom.next=function(_4,_5,_6){ |
||
17 | var _7=_4=="line"; |
||
18 | if(_7||_4=="area"){ |
||
19 | var s=this.seriesThemes[this._current%this.seriesThemes.length]; |
||
20 | s.fill.space="plot";
|
||
21 | if(_7){
|
||
22 | s.stroke={width:4,color:s.fill.colors[0].color}; |
||
23 | } |
||
24 | var _8=_2.prototype.next.apply(this,arguments); |
||
25 | delete s.outline;
|
||
26 | delete s.stroke;
|
||
27 | s.fill.space="shape";
|
||
28 | return _8;
|
||
29 | } |
||
30 | return _2.prototype.next.apply(this,arguments); |
||
31 | }; |
||
32 | _1.Tom.post=function(_9,_a){ |
||
33 | _9=_2.prototype.post.apply(this,arguments); |
||
34 | if((_a=="slice"||_a=="circle")&&_9.series.fill&&_9.series.fill.type=="radial"){ |
||
35 | _9.series.fill=dojox.gfx.gradutils.reverse(_9.series.fill); |
||
36 | } |
||
37 | return _9;
|
||
38 | }; |
||
39 | })(); |
||
40 | } |