/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.charting.Theme"]){dojo._hasResource["dojox.charting.Theme"]=true;dojo.provide("dojox.charting.Theme");dojo.require("dojox.color");dojo.require("dojox.color.Palette");(function(){var _1=dojox.charting;_1.Theme=function(_2){_2=_2||{};var _3=_1.Theme._def;dojo.forEach(["chart","plotarea","axis","series","marker"],function(n){this[n]=dojo.delegate(_3[n],_2[n]||{});},this);this.markers=dojo.delegate(_1.Theme.Markers,_2.markers||{});this.colors=[];this.antiAlias=("antiAlias" in _2)?_2.antiAlias:true;this.assignColors=("assignColors" in _2)?_2.assignColors:true;this.assignMarkers=("assignMarkers" in _2)?_2.assignMarkers:true;_2.colors=_2.colors||_3.colors;dojo.forEach(_2.colors,function(_4){this.colors.push(_4);},this);this._current={color:0,marker:0};this._markers=[];this._buildMarkerArray();};_1.Theme.Markers={CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"};_1.Theme._def={chart:{stroke:null,fill:"white"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},majorTick:{color:"#666",width:1,length:6,position:"center"},minorTick:{color:"#666",width:0.8,length:3,position:"center"},microTick:{color:"#666",width:0.5,length:1,position:"center"},font:"normal normal normal 7pt Tahoma",fontColor:"#333"},series:{outline:{width:0.1,color:"#ccc"},stroke:{width:1.5,color:"#333"},fill:"#ccc",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},marker:{stroke:{width:1},fill:"#333",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},colors:["#54544c","#858e94","#6e767a","#948585","#474747"]};dojo.extend(_1.Theme,{defineColors:function(_5){var _6=_5||{};var c=[],n=_6.num||5;if(_6.colors){var l=_6.colors.length;for(var i=0;i