root / trunk / web / dojo / dojox / charting / themes / PlotKit / base.js
History | View | Annotate | Download (1.36 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.PlotKit.base"]){ |
||
9 | dojo._hasResource["dojox.charting.themes.PlotKit.base"]=true; |
||
10 | dojo.provide("dojox.charting.themes.PlotKit.base");
|
||
11 | dojo.require("dojox.charting.Theme");
|
||
12 | (function(){
|
||
13 | var dc=dojox.charting,pk=dc.themes.PlotKit;
|
||
14 | pk.base=new dc.Theme({chart:{stroke:null,fill:"yellow"},plotarea:{stroke:null,fill:"yellow"},axis:{stroke:{color:"#fff",width:1},line:{color:"#fff",width:0.5},majorTick:{color:"#fff",width:0.5,length:6},minorTick:{color:"#fff",width:0.5,length:3},tick:{font:"normal normal normal 7pt Helvetica,Arial,sans-serif",fontColor:"#999"}},series:{stroke:{width:2.5,color:"#fff"},fill:"#666",font:"normal normal normal 7.5pt Helvetica,Arial,sans-serif",fontColor:"#666"},marker:{stroke:{width:2},fill:"#333",font:"normal normal normal 7pt Helvetica,Arial,sans-serif",fontColor:"#666"},colors:["red","green","blue"]}); |
||
15 | pk.base.next=function(_1,_2,_3){ |
||
16 | var _4=dc.Theme.prototype.next.apply(this,arguments); |
||
17 | if(_1=="line"){ |
||
18 | _4.marker.outline={width:2,color:"#fff"}; |
||
19 | _4.series.stroke.width=3.5;
|
||
20 | _4.marker.stroke.width=2;
|
||
21 | }else{
|
||
22 | if(_1=="candlestick"){ |
||
23 | _4.series.stroke.width=1;
|
||
24 | }else{
|
||
25 | _4.series.stroke.color="#fff";
|
||
26 | } |
||
27 | } |
||
28 | return _4;
|
||
29 | }; |
||
30 | })(); |
||
31 | } |