diff options
Diffstat (limited to 'js/dojo-1.6/dojox/charting/themes')
84 files changed, 3810 insertions, 0 deletions
diff --git a/js/dojo-1.6/dojox/charting/themes/Adobebricks.js b/js/dojo-1.6/dojox/charting/themes/Adobebricks.js new file mode 100644 index 0000000..c4991dd --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Adobebricks.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Adobebricks"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Adobebricks"] = true;
+dojo.provide("dojox.charting.themes.Adobebricks");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Adobebricks=new dxc.Theme({
+ colors: [
+ "#7f2518",
+ "#3e170c",
+ "#cc3927",
+ "#651f0e",
+ "#8c271c"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Adobebricks.xd.js b/js/dojo-1.6/dojox/charting/themes/Adobebricks.xd.js new file mode 100644 index 0000000..8445b42 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Adobebricks.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Adobebricks"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Adobebricks"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Adobebricks"] = true;
+dojo.provide("dojox.charting.themes.Adobebricks");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Adobebricks=new dxc.Theme({
+ colors: [
+ "#7f2518",
+ "#3e170c",
+ "#cc3927",
+ "#651f0e",
+ "#8c271c"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Algae.js b/js/dojo-1.6/dojox/charting/themes/Algae.js new file mode 100644 index 0000000..7d3d911 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Algae.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Algae"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Algae"] = true;
+dojo.provide("dojox.charting.themes.Algae");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Algae=new dxc.Theme({
+ colors: [
+ "#57808f",
+ "#506885",
+ "#4f7878",
+ "#558f7f",
+ "#508567"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Algae.xd.js b/js/dojo-1.6/dojox/charting/themes/Algae.xd.js new file mode 100644 index 0000000..1c27982 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Algae.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Algae"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Algae"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Algae"] = true;
+dojo.provide("dojox.charting.themes.Algae");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Algae=new dxc.Theme({
+ colors: [
+ "#57808f",
+ "#506885",
+ "#4f7878",
+ "#558f7f",
+ "#508567"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Bahamation.js b/js/dojo-1.6/dojox/charting/themes/Bahamation.js new file mode 100644 index 0000000..b5212bd --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Bahamation.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Bahamation"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Bahamation"] = true;
+dojo.provide("dojox.charting.themes.Bahamation");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Bahamation=new dxc.Theme({
+ colors: [
+ "#3f9998",
+ "#3fc0c3",
+ "#70c058",
+ "#ef446f",
+ "#c663a6"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Bahamation.xd.js b/js/dojo-1.6/dojox/charting/themes/Bahamation.xd.js new file mode 100644 index 0000000..e35bf37 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Bahamation.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Bahamation"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Bahamation"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Bahamation"] = true;
+dojo.provide("dojox.charting.themes.Bahamation");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Bahamation=new dxc.Theme({
+ colors: [
+ "#3f9998",
+ "#3fc0c3",
+ "#70c058",
+ "#ef446f",
+ "#c663a6"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/BlueDusk.js b/js/dojo-1.6/dojox/charting/themes/BlueDusk.js new file mode 100644 index 0000000..d16a04c --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/BlueDusk.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.BlueDusk"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.BlueDusk"] = true;
+dojo.provide("dojox.charting.themes.BlueDusk");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.BlueDusk=new dxc.Theme({
+ colors: [
+ "#292e76",
+ "#3e56a6",
+ "#10143f",
+ "#33449c",
+ "#798dcd"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/BlueDusk.xd.js b/js/dojo-1.6/dojox/charting/themes/BlueDusk.xd.js new file mode 100644 index 0000000..b668d89 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/BlueDusk.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.BlueDusk"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.BlueDusk"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.BlueDusk"] = true;
+dojo.provide("dojox.charting.themes.BlueDusk");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.BlueDusk=new dxc.Theme({
+ colors: [
+ "#292e76",
+ "#3e56a6",
+ "#10143f",
+ "#33449c",
+ "#798dcd"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Charged.js b/js/dojo-1.6/dojox/charting/themes/Charged.js new file mode 100644 index 0000000..d26554f --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Charged.js @@ -0,0 +1,102 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Charged"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Charged"] = true;
+dojo.provide("dojox.charting.themes.Charged");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 75};
+
+ themes.Charged = new dc.Theme({
+ chart: {
+ fill: "#ededdf",
+ pageStyle: {backgroundColor: "#ededdf", backgroundImage: "none", color: "inherit"}
+ },
+ plotarea: {
+ fill: "transparent"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#808078",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#b3b3a8",
+ position: "center",
+ font: "normal normal normal 7pt Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#808078" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2, color: "#595954"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#808078"
+ },
+ marker: {
+ stroke: {width: 3, color: "#595954"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#808078"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#004cbf", "#06f")},
+ {fill: g(defaultFill, "#bf004c", "#f06")},
+ {fill: g(defaultFill, "#43bf00", "#6f0")},
+ {fill: g(defaultFill, "#7300bf", "#90f")},
+ {fill: g(defaultFill, "#bf7300", "#f90")},
+ {fill: g(defaultFill, "#00bf73", "#0f9")}
+ ],
+ markerThemes: [
+ {fill: "#06f", stroke: {color: "#06f"}},
+ {fill: "#f06", stroke: {color: "#f06"}},
+ {fill: "#6f0", stroke: {color: "#6f0"}},
+ {fill: "#90f", stroke: {color: "#90f"}},
+ {fill: "#f90", stroke: {color: "#f90"}},
+ {fill: "#0f9", stroke: {color: "#0f9"}}
+ ]
+ });
+
+ themes.Charged.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 2.5, color: s.fill.colors[1].color};
+ }
+ if(elementType == "area"){
+ s.fill.y2 = 90;
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.stroke;
+ s.fill.y2 = 75;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Charged.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Charged.xd.js b/js/dojo-1.6/dojox/charting/themes/Charged.xd.js new file mode 100644 index 0000000..df7de05 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Charged.xd.js @@ -0,0 +1,108 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Charged"],
+["require", "dojox.gfx.gradutils"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Charged"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Charged"] = true;
+dojo.provide("dojox.charting.themes.Charged");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 75};
+
+ themes.Charged = new dc.Theme({
+ chart: {
+ fill: "#ededdf",
+ pageStyle: {backgroundColor: "#ededdf", backgroundImage: "none", color: "inherit"}
+ },
+ plotarea: {
+ fill: "transparent"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#808078",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#b3b3a8",
+ position: "center",
+ font: "normal normal normal 7pt Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#808078" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2, color: "#595954"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#808078"
+ },
+ marker: {
+ stroke: {width: 3, color: "#595954"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#808078"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#004cbf", "#06f")},
+ {fill: g(defaultFill, "#bf004c", "#f06")},
+ {fill: g(defaultFill, "#43bf00", "#6f0")},
+ {fill: g(defaultFill, "#7300bf", "#90f")},
+ {fill: g(defaultFill, "#bf7300", "#f90")},
+ {fill: g(defaultFill, "#00bf73", "#0f9")}
+ ],
+ markerThemes: [
+ {fill: "#06f", stroke: {color: "#06f"}},
+ {fill: "#f06", stroke: {color: "#f06"}},
+ {fill: "#6f0", stroke: {color: "#6f0"}},
+ {fill: "#90f", stroke: {color: "#90f"}},
+ {fill: "#f90", stroke: {color: "#f90"}},
+ {fill: "#0f9", stroke: {color: "#0f9"}}
+ ]
+ });
+
+ themes.Charged.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 2.5, color: s.fill.colors[1].color};
+ }
+ if(elementType == "area"){
+ s.fill.y2 = 90;
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.stroke;
+ s.fill.y2 = 75;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Charged.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Chris.js b/js/dojo-1.6/dojox/charting/themes/Chris.js new file mode 100644 index 0000000..8c0da34 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Chris.js @@ -0,0 +1,88 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Chris"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Chris"] = true;
+dojo.provide("dojox.charting.themes.Chris");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Christopher Anderson
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Chris = new dc.Theme({
+ chart: {
+ fill: "#c1c1c1",
+ stroke: {color: "#666"}
+ },
+ plotarea: {
+ fill: "#c1c1c1"
+ },
+ series: {
+ stroke: {width: 2, color: "white"},
+ outline: null,
+ fontColor: "#333"
+ },
+ marker: {
+ stroke: {width: 2, color: "white"},
+ outline: {width: 2, color: "white"},
+ fontColor: "#333"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#01b717", "#238c01")}, // green
+ {fill: g(defaultFill, "#d04918", "#7c0344")}, // red
+ {fill: g(defaultFill, "#0005ec", "#002578")}, // blue
+ {fill: g(defaultFill, "#f9e500", "#786f00")}, // yellow
+ {fill: g(defaultFill, "#e27d00", "#773e00")}, // orange
+ {fill: g(defaultFill, "#00b5b0", "#005f5d")}, // teal
+ {fill: g(defaultFill, "#ac00cb", "#590060")} // purple
+ ],
+ markerThemes: [
+ {fill: "#01b717", stroke: {color: "#238c01"}}, // green
+ {fill: "#d04918", stroke: {color: "#7c0344"}}, // red
+ {fill: "#0005ec", stroke: {color: "#002578"}}, // blue
+ {fill: "#f9e500", stroke: {color: "#786f00"}}, // yellow
+ {fill: "#e27d00", stroke: {color: "#773e00"}}, // orange
+ {fill: "#00b5b0", stroke: {color: "#005f5d"}}, // teal
+ {fill: "#ac00cb", stroke: {color: "#590060"}} // purple
+ ]
+ });
+
+ themes.Chris.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = {color: s.fill.colors[1].color};
+ s.outline = {width: 2, color: "white"};
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.outline;
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Chris.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Chris.xd.js b/js/dojo-1.6/dojox/charting/themes/Chris.xd.js new file mode 100644 index 0000000..0088e14 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Chris.xd.js @@ -0,0 +1,94 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Chris"],
+["require", "dojox.gfx.gradutils"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Chris"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Chris"] = true;
+dojo.provide("dojox.charting.themes.Chris");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Christopher Anderson
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Chris = new dc.Theme({
+ chart: {
+ fill: "#c1c1c1",
+ stroke: {color: "#666"}
+ },
+ plotarea: {
+ fill: "#c1c1c1"
+ },
+ series: {
+ stroke: {width: 2, color: "white"},
+ outline: null,
+ fontColor: "#333"
+ },
+ marker: {
+ stroke: {width: 2, color: "white"},
+ outline: {width: 2, color: "white"},
+ fontColor: "#333"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#01b717", "#238c01")}, // green
+ {fill: g(defaultFill, "#d04918", "#7c0344")}, // red
+ {fill: g(defaultFill, "#0005ec", "#002578")}, // blue
+ {fill: g(defaultFill, "#f9e500", "#786f00")}, // yellow
+ {fill: g(defaultFill, "#e27d00", "#773e00")}, // orange
+ {fill: g(defaultFill, "#00b5b0", "#005f5d")}, // teal
+ {fill: g(defaultFill, "#ac00cb", "#590060")} // purple
+ ],
+ markerThemes: [
+ {fill: "#01b717", stroke: {color: "#238c01"}}, // green
+ {fill: "#d04918", stroke: {color: "#7c0344"}}, // red
+ {fill: "#0005ec", stroke: {color: "#002578"}}, // blue
+ {fill: "#f9e500", stroke: {color: "#786f00"}}, // yellow
+ {fill: "#e27d00", stroke: {color: "#773e00"}}, // orange
+ {fill: "#00b5b0", stroke: {color: "#005f5d"}}, // teal
+ {fill: "#ac00cb", stroke: {color: "#590060"}} // purple
+ ]
+ });
+
+ themes.Chris.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = {color: s.fill.colors[1].color};
+ s.outline = {width: 2, color: "white"};
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.outline;
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Chris.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Claro.js b/js/dojo-1.6/dojox/charting/themes/Claro.js new file mode 100644 index 0000000..5a471c3 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Claro.js @@ -0,0 +1,119 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Claro"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Claro"] = true;
+dojo.provide("dojox.charting.themes.Claro");
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Claro = new dc.Theme({
+ chart: {
+ fill: {
+ type: "linear",
+ x1: 0, x2: 0, y1: 0, y2: 100,
+ colors: [
+ { offset: 0, color: "#dbdbdb" },
+ { offset: 1, color: "#efefef" }
+ ]
+ },
+ stroke: {color: "#b5bcc7"}
+ },
+ plotarea: {
+ fill: {
+ type: "linear",
+ x1: 0, x2: 0, y1: 0, y2: 100,
+ colors: [
+ { offset: 0, color: "#dbdbdb" },
+ { offset: 1, color: "#efefef" }
+ ]
+ }
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#888c76",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#888c76",
+ position: "center",
+ font: "normal normal normal 7pt Verdana, Arial, sans-serif", // labels on axis
+ fontColor: "#888c76" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2.5, color: "#fff"},
+ outline: null,
+ font: "normal normal normal 7pt Verdana, Arial, sans-serif",
+ fontColor: "#131313"
+ },
+ marker: {
+ stroke: {width: 1.25, color: "#131313"},
+ outline: {width: 1.25, color: "#131313"},
+ font: "normal normal normal 8pt Verdana, Arial, sans-serif",
+ fontColor: "#131313"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#2a6ead", "#3a99f2")},
+ {fill: g(defaultFill, "#613e04", "#996106")},
+ {fill: g(defaultFill, "#0e3961", "#155896")},
+ {fill: g(defaultFill, "#55aafa", "#3f7fba")},
+ {fill: g(defaultFill, "#ad7b2a", "#db9b35")}
+ ],
+ markerThemes: [
+ {fill: "#2a6ead", stroke: {color: "#fff"}},
+ {fill: "#613e04", stroke: {color: "#fff"}},
+ {fill: "#0e3961", stroke: {color: "#fff"}},
+ {fill: "#55aafa", stroke: {color: "#fff"}},
+ {fill: "#ad7b2a", stroke: {color: "#fff"}}
+ ]
+ });
+
+ themes.Claro.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length],
+ m = this.markerThemes[this._current % this.markerThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 4, color: s.fill.colors[0].color};
+ }
+ m.outline = { width: 1.25, color: m.fill };
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.outline;
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ else if(elementType == "candlestick"){
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ s.stroke = { width: 1, color: s.fill.colors[0].color};
+ var theme = Theme.prototype.next.apply(this, arguments);
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Claro.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Claro.xd.js b/js/dojo-1.6/dojox/charting/themes/Claro.xd.js new file mode 100644 index 0000000..781a391 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Claro.xd.js @@ -0,0 +1,125 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Claro"],
+["require", "dojox.gfx.gradutils"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Claro"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Claro"] = true;
+dojo.provide("dojox.charting.themes.Claro");
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Claro = new dc.Theme({
+ chart: {
+ fill: {
+ type: "linear",
+ x1: 0, x2: 0, y1: 0, y2: 100,
+ colors: [
+ { offset: 0, color: "#dbdbdb" },
+ { offset: 1, color: "#efefef" }
+ ]
+ },
+ stroke: {color: "#b5bcc7"}
+ },
+ plotarea: {
+ fill: {
+ type: "linear",
+ x1: 0, x2: 0, y1: 0, y2: 100,
+ colors: [
+ { offset: 0, color: "#dbdbdb" },
+ { offset: 1, color: "#efefef" }
+ ]
+ }
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#888c76",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#888c76",
+ position: "center",
+ font: "normal normal normal 7pt Verdana, Arial, sans-serif", // labels on axis
+ fontColor: "#888c76" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2.5, color: "#fff"},
+ outline: null,
+ font: "normal normal normal 7pt Verdana, Arial, sans-serif",
+ fontColor: "#131313"
+ },
+ marker: {
+ stroke: {width: 1.25, color: "#131313"},
+ outline: {width: 1.25, color: "#131313"},
+ font: "normal normal normal 8pt Verdana, Arial, sans-serif",
+ fontColor: "#131313"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#2a6ead", "#3a99f2")},
+ {fill: g(defaultFill, "#613e04", "#996106")},
+ {fill: g(defaultFill, "#0e3961", "#155896")},
+ {fill: g(defaultFill, "#55aafa", "#3f7fba")},
+ {fill: g(defaultFill, "#ad7b2a", "#db9b35")}
+ ],
+ markerThemes: [
+ {fill: "#2a6ead", stroke: {color: "#fff"}},
+ {fill: "#613e04", stroke: {color: "#fff"}},
+ {fill: "#0e3961", stroke: {color: "#fff"}},
+ {fill: "#55aafa", stroke: {color: "#fff"}},
+ {fill: "#ad7b2a", stroke: {color: "#fff"}}
+ ]
+ });
+
+ themes.Claro.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length],
+ m = this.markerThemes[this._current % this.markerThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 4, color: s.fill.colors[0].color};
+ }
+ m.outline = { width: 1.25, color: m.fill };
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.outline;
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ else if(elementType == "candlestick"){
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ s.stroke = { width: 1, color: s.fill.colors[0].color};
+ var theme = Theme.prototype.next.apply(this, arguments);
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Claro.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/CubanShirts.js b/js/dojo-1.6/dojox/charting/themes/CubanShirts.js new file mode 100644 index 0000000..176dbff --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/CubanShirts.js @@ -0,0 +1,28 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.CubanShirts"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.CubanShirts"] = true;
+dojo.provide("dojox.charting.themes.CubanShirts");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.CubanShirts=new dxc.Theme({
+ colors: [
+ "#d42d2a",
+ "#004f80",
+ "#989736",
+ "#2085c7",
+ "#7f7f33"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/CubanShirts.xd.js b/js/dojo-1.6/dojox/charting/themes/CubanShirts.xd.js new file mode 100644 index 0000000..722e423 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/CubanShirts.xd.js @@ -0,0 +1,33 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.CubanShirts"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.CubanShirts"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.CubanShirts"] = true;
+dojo.provide("dojox.charting.themes.CubanShirts");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.CubanShirts=new dxc.Theme({
+ colors: [
+ "#d42d2a",
+ "#004f80",
+ "#989736",
+ "#2085c7",
+ "#7f7f33"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Desert.js b/js/dojo-1.6/dojox/charting/themes/Desert.js new file mode 100644 index 0000000..8b4fe72 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Desert.js @@ -0,0 +1,28 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Desert"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Desert"] = true;
+dojo.provide("dojox.charting.themes.Desert");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.Desert=new dxc.Theme({
+ colors: [
+ "#ffebd5",
+ "#806544",
+ "#fdc888",
+ "#80766b",
+ "#cda26e"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Desert.xd.js b/js/dojo-1.6/dojox/charting/themes/Desert.xd.js new file mode 100644 index 0000000..237b5c7 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Desert.xd.js @@ -0,0 +1,33 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Desert"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Desert"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Desert"] = true;
+dojo.provide("dojox.charting.themes.Desert");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.Desert=new dxc.Theme({
+ colors: [
+ "#ffebd5",
+ "#806544",
+ "#fdc888",
+ "#80766b",
+ "#cda26e"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Distinctive.js b/js/dojo-1.6/dojox/charting/themes/Distinctive.js new file mode 100644 index 0000000..e83d500 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Distinctive.js @@ -0,0 +1,53 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Distinctive"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Distinctive"] = true;
+dojo.provide("dojox.charting.themes.Distinctive");
+dojo.require("dojox.charting.Theme");
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Distinctive=new dxc.Theme({
+ colors: [
+ "#497c91",
+ "#ada9d6",
+ "#768b4e",
+ "#eeea99",
+ "#b39c53",
+ "#c28b69",
+ "#815454",
+ "#bebebe",
+ "#59a0bd",
+ "#c9c6e4",
+ "#677e13",
+ "#f0eebb",
+ "#e9c756",
+ "#cfb09b",
+ "#a05a5a",
+ "#d8d8d8",
+ "#9dc7d9",
+ "#7b78a4",
+ "#a8c179",
+ "#b7b35c",
+ "#ebcf81",
+ "#956649",
+ "#c99999",
+ "#868686",
+ "#c7e0e9",
+ "#8d88c7",
+ "#c0d0a0",
+ "#e8e667",
+ "#efdeb0",
+ "#b17044",
+ "#ddc0c0",
+ "#a5a5a5"
+
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Distinctive.xd.js b/js/dojo-1.6/dojox/charting/themes/Distinctive.xd.js new file mode 100644 index 0000000..32b3896 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Distinctive.xd.js @@ -0,0 +1,58 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Distinctive"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Distinctive"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Distinctive"] = true;
+dojo.provide("dojox.charting.themes.Distinctive");
+dojo.require("dojox.charting.Theme");
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Distinctive=new dxc.Theme({
+ colors: [
+ "#497c91",
+ "#ada9d6",
+ "#768b4e",
+ "#eeea99",
+ "#b39c53",
+ "#c28b69",
+ "#815454",
+ "#bebebe",
+ "#59a0bd",
+ "#c9c6e4",
+ "#677e13",
+ "#f0eebb",
+ "#e9c756",
+ "#cfb09b",
+ "#a05a5a",
+ "#d8d8d8",
+ "#9dc7d9",
+ "#7b78a4",
+ "#a8c179",
+ "#b7b35c",
+ "#ebcf81",
+ "#956649",
+ "#c99999",
+ "#868686",
+ "#c7e0e9",
+ "#8d88c7",
+ "#c0d0a0",
+ "#e8e667",
+ "#efdeb0",
+ "#b17044",
+ "#ddc0c0",
+ "#a5a5a5"
+
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Dollar.js b/js/dojo-1.6/dojox/charting/themes/Dollar.js new file mode 100644 index 0000000..bfed198 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Dollar.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Dollar"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Dollar"] = true;
+dojo.provide("dojox.charting.themes.Dollar");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Dollar=new dxc.Theme({
+ colors: [
+ "#A4CE67",
+ "#739363",
+ "#6B824A",
+ "#343434",
+ "#636563"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Dollar.xd.js b/js/dojo-1.6/dojox/charting/themes/Dollar.xd.js new file mode 100644 index 0000000..6862c09 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Dollar.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Dollar"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Dollar"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Dollar"] = true;
+dojo.provide("dojox.charting.themes.Dollar");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Dollar=new dxc.Theme({
+ colors: [
+ "#A4CE67",
+ "#739363",
+ "#6B824A",
+ "#343434",
+ "#636563"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Electric.js b/js/dojo-1.6/dojox/charting/themes/Electric.js new file mode 100644 index 0000000..5b047c9 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Electric.js @@ -0,0 +1,103 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Electric"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Electric"] = true;
+dojo.provide("dojox.charting.themes.Electric");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 75};
+
+ themes.Electric = new dc.Theme({
+ chart: {
+ fill: "#252525",
+ stroke: {color: "#252525"},
+ pageStyle: {backgroundColor: "#252525", backgroundImage: "none", color: "#ccc"}
+ },
+ plotarea: {
+ fill: "#252525"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#aaa",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#777",
+ position: "center",
+ font: "normal normal normal 7pt Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#777" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2, color: "#ccc"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#ccc"
+ },
+ marker: {
+ stroke: {width: 3, color: "#ccc"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#ccc"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#004cbf", "#06f")},
+ {fill: g(defaultFill, "#bf004c", "#f06")},
+ {fill: g(defaultFill, "#43bf00", "#6f0")},
+ {fill: g(defaultFill, "#7300bf", "#90f")},
+ {fill: g(defaultFill, "#bf7300", "#f90")},
+ {fill: g(defaultFill, "#00bf73", "#0f9")}
+ ],
+ markerThemes: [
+ {fill: "#06f", stroke: {color: "#06f"}},
+ {fill: "#f06", stroke: {color: "#f06"}},
+ {fill: "#6f0", stroke: {color: "#6f0"}},
+ {fill: "#90f", stroke: {color: "#90f"}},
+ {fill: "#f90", stroke: {color: "#f90"}},
+ {fill: "#0f9", stroke: {color: "#0f9"}}
+ ]
+ });
+
+ themes.Electric.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 2.5, color: s.fill.colors[1].color};
+ }
+ if(elementType == "area"){
+ s.fill.y2 = 90;
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.stroke;
+ s.fill.y2 = 75;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Electric.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Electric.xd.js b/js/dojo-1.6/dojox/charting/themes/Electric.xd.js new file mode 100644 index 0000000..7d6dea5 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Electric.xd.js @@ -0,0 +1,109 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Electric"],
+["require", "dojox.gfx.gradutils"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Electric"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Electric"] = true;
+dojo.provide("dojox.charting.themes.Electric");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 75};
+
+ themes.Electric = new dc.Theme({
+ chart: {
+ fill: "#252525",
+ stroke: {color: "#252525"},
+ pageStyle: {backgroundColor: "#252525", backgroundImage: "none", color: "#ccc"}
+ },
+ plotarea: {
+ fill: "#252525"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#aaa",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#777",
+ position: "center",
+ font: "normal normal normal 7pt Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#777" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2, color: "#ccc"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#ccc"
+ },
+ marker: {
+ stroke: {width: 3, color: "#ccc"},
+ outline: null,
+ font: "normal normal normal 8pt Helvetica, Arial, sans-serif",
+ fontColor: "#ccc"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#004cbf", "#06f")},
+ {fill: g(defaultFill, "#bf004c", "#f06")},
+ {fill: g(defaultFill, "#43bf00", "#6f0")},
+ {fill: g(defaultFill, "#7300bf", "#90f")},
+ {fill: g(defaultFill, "#bf7300", "#f90")},
+ {fill: g(defaultFill, "#00bf73", "#0f9")}
+ ],
+ markerThemes: [
+ {fill: "#06f", stroke: {color: "#06f"}},
+ {fill: "#f06", stroke: {color: "#f06"}},
+ {fill: "#6f0", stroke: {color: "#6f0"}},
+ {fill: "#90f", stroke: {color: "#90f"}},
+ {fill: "#f90", stroke: {color: "#f90"}},
+ {fill: "#0f9", stroke: {color: "#0f9"}}
+ ]
+ });
+
+ themes.Electric.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 2.5, color: s.fill.colors[1].color};
+ }
+ if(elementType == "area"){
+ s.fill.y2 = 90;
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.stroke;
+ s.fill.y2 = 75;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Electric.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Grasshopper.js b/js/dojo-1.6/dojox/charting/themes/Grasshopper.js new file mode 100644 index 0000000..ce4fb17 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Grasshopper.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Grasshopper"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Grasshopper"] = true;
+dojo.provide("dojox.charting.themes.Grasshopper");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Grasshopper=new dxc.Theme({
+ colors: [
+ "#208040",
+ "#40b657",
+ "#78c25e",
+ "#14401f",
+ "#64bd5f"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Grasshopper.xd.js b/js/dojo-1.6/dojox/charting/themes/Grasshopper.xd.js new file mode 100644 index 0000000..1159d02 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Grasshopper.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Grasshopper"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Grasshopper"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Grasshopper"] = true;
+dojo.provide("dojox.charting.themes.Grasshopper");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Grasshopper=new dxc.Theme({
+ colors: [
+ "#208040",
+ "#40b657",
+ "#78c25e",
+ "#14401f",
+ "#64bd5f"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Grasslands.js b/js/dojo-1.6/dojox/charting/themes/Grasslands.js new file mode 100644 index 0000000..6811d49 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Grasslands.js @@ -0,0 +1,28 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Grasslands"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Grasslands"] = true;
+dojo.provide("dojox.charting.themes.Grasslands");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.Grasslands=new dxc.Theme({
+ colors: [
+ "#70803a",
+ "#dde574",
+ "#788062",
+ "#b1cc5d",
+ "#eff2c2"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Grasslands.xd.js b/js/dojo-1.6/dojox/charting/themes/Grasslands.xd.js new file mode 100644 index 0000000..c23dda8 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Grasslands.xd.js @@ -0,0 +1,33 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Grasslands"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Grasslands"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Grasslands"] = true;
+dojo.provide("dojox.charting.themes.Grasslands");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.Grasslands=new dxc.Theme({
+ colors: [
+ "#70803a",
+ "#dde574",
+ "#788062",
+ "#b1cc5d",
+ "#eff2c2"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/GreySkies.js b/js/dojo-1.6/dojox/charting/themes/GreySkies.js new file mode 100644 index 0000000..f04f653 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/GreySkies.js @@ -0,0 +1,18 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.GreySkies"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.GreySkies"] = true;
+dojo.provide("dojox.charting.themes.GreySkies");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.GreySkies=new dxc.Theme(dxc.Theme._def);
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/GreySkies.xd.js b/js/dojo-1.6/dojox/charting/themes/GreySkies.xd.js new file mode 100644 index 0000000..3ed0f9e --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/GreySkies.xd.js @@ -0,0 +1,23 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.GreySkies"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.GreySkies"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.GreySkies"] = true;
+dojo.provide("dojox.charting.themes.GreySkies");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.GreySkies=new dxc.Theme(dxc.Theme._def);
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Harmony.js b/js/dojo-1.6/dojox/charting/themes/Harmony.js new file mode 100644 index 0000000..a09ea1d --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Harmony.js @@ -0,0 +1,53 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Harmony"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Harmony"] = true;
+dojo.provide("dojox.charting.themes.Harmony");
+dojo.require("dojox.charting.Theme");
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Harmony=new dxc.Theme({
+ colors: [
+ "#497c91",
+ "#59a0bd",
+ "#9dc7d9",
+ "#c7e0e9",
+ "#7b78a4",
+ "#8d88c7",
+ "#ada9d6",
+ "#c9c6e4",
+ "#768b4e",
+ "#677e13",
+ "#a8c179",
+ "#c0d0a0",
+ "#b7b35c",
+ "#e8e667",
+ "#eeea99",
+ "#f0eebb",
+ "#b39c53",
+ "#e9c756",
+ "#ebcf81",
+ "#efdeb0",
+ "#956649",
+ "#b17044",
+ "#c28b69",
+ "#cfb09b",
+ "#815454",
+ "#a05a5a",
+ "#c99999",
+ "#ddc0c0",
+ "#868686",
+ "#a5a5a5",
+ "#bebebe",
+ "#d8d8d8"
+
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Harmony.xd.js b/js/dojo-1.6/dojox/charting/themes/Harmony.xd.js new file mode 100644 index 0000000..9b7ef37 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Harmony.xd.js @@ -0,0 +1,58 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Harmony"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Harmony"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Harmony"] = true;
+dojo.provide("dojox.charting.themes.Harmony");
+dojo.require("dojox.charting.Theme");
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Harmony=new dxc.Theme({
+ colors: [
+ "#497c91",
+ "#59a0bd",
+ "#9dc7d9",
+ "#c7e0e9",
+ "#7b78a4",
+ "#8d88c7",
+ "#ada9d6",
+ "#c9c6e4",
+ "#768b4e",
+ "#677e13",
+ "#a8c179",
+ "#c0d0a0",
+ "#b7b35c",
+ "#e8e667",
+ "#eeea99",
+ "#f0eebb",
+ "#b39c53",
+ "#e9c756",
+ "#ebcf81",
+ "#efdeb0",
+ "#956649",
+ "#b17044",
+ "#c28b69",
+ "#cfb09b",
+ "#815454",
+ "#a05a5a",
+ "#c99999",
+ "#ddc0c0",
+ "#868686",
+ "#a5a5a5",
+ "#bebebe",
+ "#d8d8d8"
+
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/IndigoNation.js b/js/dojo-1.6/dojox/charting/themes/IndigoNation.js new file mode 100644 index 0000000..37e128d --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/IndigoNation.js @@ -0,0 +1,28 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.IndigoNation"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.IndigoNation"] = true;
+dojo.provide("dojox.charting.themes.IndigoNation");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.IndigoNation=new dxc.Theme({
+ colors: [
+ "#93a4d0",
+ "#3b4152",
+ "#687291",
+ "#9faed9",
+ "#8290b8"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/IndigoNation.xd.js b/js/dojo-1.6/dojox/charting/themes/IndigoNation.xd.js new file mode 100644 index 0000000..fea2465 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/IndigoNation.xd.js @@ -0,0 +1,33 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.IndigoNation"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.IndigoNation"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.IndigoNation"] = true;
+dojo.provide("dojox.charting.themes.IndigoNation");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.IndigoNation=new dxc.Theme({
+ colors: [
+ "#93a4d0",
+ "#3b4152",
+ "#687291",
+ "#9faed9",
+ "#8290b8"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Ireland.js b/js/dojo-1.6/dojox/charting/themes/Ireland.js new file mode 100644 index 0000000..2b112ba --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Ireland.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Ireland"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Ireland"] = true;
+dojo.provide("dojox.charting.themes.Ireland");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Ireland=new dxc.Theme({
+ colors: [
+ "#abdbcb",
+ "#435a51",
+ "#70998b",
+ "#78d596",
+ "#5f8074"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Ireland.xd.js b/js/dojo-1.6/dojox/charting/themes/Ireland.xd.js new file mode 100644 index 0000000..87668f4 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Ireland.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Ireland"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Ireland"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Ireland"] = true;
+dojo.provide("dojox.charting.themes.Ireland");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Ireland=new dxc.Theme({
+ colors: [
+ "#abdbcb",
+ "#435a51",
+ "#70998b",
+ "#78d596",
+ "#5f8074"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Julie.js b/js/dojo-1.6/dojox/charting/themes/Julie.js new file mode 100644 index 0000000..6ff71be --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Julie.js @@ -0,0 +1,81 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Julie"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Julie"] = true;
+dojo.provide("dojox.charting.themes.Julie");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Julie Santilli
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Julie = new dc.Theme({
+ seriesThemes: [
+ {fill: g(defaultFill, "#59a0bd", "#497c91"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#8d88c7", "#6c6d8e"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#85a54a", "#768b4e"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#e8e667", "#c6c361"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#e9c756", "#c7a223"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#a05a5a", "#815454"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#b17044", "#72543e"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#a5a5a5", "#727272"), stroke: {color: "#535353"}}, // grey
+
+ {fill: g(defaultFill, "#9dc7d9", "#59a0bd"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#b7b3da", "#8681b3"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#a8c179", "#85a54a"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#eeea99", "#d6d456"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#ebcf81", "#e9c756"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#c99999", "#a05a5a"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#c28b69", "#7d5437"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#bebebe", "#8c8c8c"), stroke: {color: "#535353"}}, // grey
+
+ {fill: g(defaultFill, "#c7e0e9", "#92baca"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#c9c6e4", "#ada9d6"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#c0d0a0", "#98ab74"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#f0eebb", "#dcd87c"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#efdeb0", "#ebcf81"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#ddc0c0", "#c99999"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#cfb09b", "#c28b69"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#d8d8d8", "#bebebe"), stroke: {color: "#535353"}}, // grey
+
+ {fill: g(defaultFill, "#ddeff5", "#a5c4cd"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#dedcf0", "#b3afd3"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#dfe9ca", "#c0d0a0"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#f8f7db", "#e5e28f"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#f7f0d8", "#cfbd88"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#eedede", "#caafaf"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#e3cdbf", "#cfb09b"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#efefef", "#cacaca"), stroke: {color: "#535353"}} // grey
+ ]
+ });
+
+ themes.Julie.next = function(elementType, mixin, doPost){
+ if(elementType == "line" || elementType == "area"){
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ var theme = Theme.prototype.next.apply(this, arguments);
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Julie.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if(elementType == "slice" && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Julie.xd.js b/js/dojo-1.6/dojox/charting/themes/Julie.xd.js new file mode 100644 index 0000000..79a9c19 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Julie.xd.js @@ -0,0 +1,87 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Julie"],
+["require", "dojox.gfx.gradutils"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Julie"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Julie"] = true;
+dojo.provide("dojox.charting.themes.Julie");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Julie Santilli
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Julie = new dc.Theme({
+ seriesThemes: [
+ {fill: g(defaultFill, "#59a0bd", "#497c91"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#8d88c7", "#6c6d8e"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#85a54a", "#768b4e"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#e8e667", "#c6c361"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#e9c756", "#c7a223"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#a05a5a", "#815454"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#b17044", "#72543e"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#a5a5a5", "#727272"), stroke: {color: "#535353"}}, // grey
+
+ {fill: g(defaultFill, "#9dc7d9", "#59a0bd"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#b7b3da", "#8681b3"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#a8c179", "#85a54a"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#eeea99", "#d6d456"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#ebcf81", "#e9c756"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#c99999", "#a05a5a"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#c28b69", "#7d5437"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#bebebe", "#8c8c8c"), stroke: {color: "#535353"}}, // grey
+
+ {fill: g(defaultFill, "#c7e0e9", "#92baca"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#c9c6e4", "#ada9d6"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#c0d0a0", "#98ab74"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#f0eebb", "#dcd87c"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#efdeb0", "#ebcf81"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#ddc0c0", "#c99999"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#cfb09b", "#c28b69"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#d8d8d8", "#bebebe"), stroke: {color: "#535353"}}, // grey
+
+ {fill: g(defaultFill, "#ddeff5", "#a5c4cd"), stroke: {color: "#22627d"}}, // blue
+ {fill: g(defaultFill, "#dedcf0", "#b3afd3"), stroke: {color: "#8a84c5"}}, // purple
+ {fill: g(defaultFill, "#dfe9ca", "#c0d0a0"), stroke: {color: "#5b6d1f"}}, // green
+ {fill: g(defaultFill, "#f8f7db", "#e5e28f"), stroke: {color: "#918e38"}}, // yellow
+ {fill: g(defaultFill, "#f7f0d8", "#cfbd88"), stroke: {color: "#947b30"}}, // orange
+ {fill: g(defaultFill, "#eedede", "#caafaf"), stroke: {color: "#572828"}}, // red
+ {fill: g(defaultFill, "#e3cdbf", "#cfb09b"), stroke: {color: "#74482e"}}, // brown
+ {fill: g(defaultFill, "#efefef", "#cacaca"), stroke: {color: "#535353"}} // grey
+ ]
+ });
+
+ themes.Julie.next = function(elementType, mixin, doPost){
+ if(elementType == "line" || elementType == "area"){
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ var theme = Theme.prototype.next.apply(this, arguments);
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Julie.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if(elementType == "slice" && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/MiamiNice.js b/js/dojo-1.6/dojox/charting/themes/MiamiNice.js new file mode 100644 index 0000000..885b7b3 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/MiamiNice.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.MiamiNice"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.MiamiNice"] = true;
+dojo.provide("dojox.charting.themes.MiamiNice");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.MiamiNice=new dxc.Theme({
+ colors: [
+ "#7f9599",
+ "#45b8cc",
+ "#8ecfb0",
+ "#f8acac",
+ "#cc4482"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/MiamiNice.xd.js b/js/dojo-1.6/dojox/charting/themes/MiamiNice.xd.js new file mode 100644 index 0000000..d482b9d --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/MiamiNice.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.MiamiNice"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.MiamiNice"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.MiamiNice"] = true;
+dojo.provide("dojox.charting.themes.MiamiNice");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.MiamiNice=new dxc.Theme({
+ colors: [
+ "#7f9599",
+ "#45b8cc",
+ "#8ecfb0",
+ "#f8acac",
+ "#cc4482"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Midwest.js b/js/dojo-1.6/dojox/charting/themes/Midwest.js new file mode 100644 index 0000000..309ed6e --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Midwest.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Midwest"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Midwest"] = true;
+dojo.provide("dojox.charting.themes.Midwest");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Midwest=new dxc.Theme({
+ colors: [
+ "#927b51",
+ "#a89166",
+ "#80c31c",
+ "#bcdd5a",
+ "#aebc21"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Midwest.xd.js b/js/dojo-1.6/dojox/charting/themes/Midwest.xd.js new file mode 100644 index 0000000..858e7bb --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Midwest.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Midwest"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Midwest"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Midwest"] = true;
+dojo.provide("dojox.charting.themes.Midwest");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Midwest=new dxc.Theme({
+ colors: [
+ "#927b51",
+ "#a89166",
+ "#80c31c",
+ "#bcdd5a",
+ "#aebc21"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Minty.js b/js/dojo-1.6/dojox/charting/themes/Minty.js new file mode 100644 index 0000000..7355675 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Minty.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Minty"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Minty"] = true;
+dojo.provide("dojox.charting.themes.Minty");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Minty=new dxc.Theme({
+ colors: [
+ "#80ccbb",
+ "#539e8b",
+ "#335f54",
+ "#8dd1c2",
+ "#68c5ad"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Minty.xd.js b/js/dojo-1.6/dojox/charting/themes/Minty.xd.js new file mode 100644 index 0000000..289ec57 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Minty.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Minty"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Minty"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Minty"] = true;
+dojo.provide("dojox.charting.themes.Minty");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Minty=new dxc.Theme({
+ colors: [
+ "#80ccbb",
+ "#539e8b",
+ "#335f54",
+ "#8dd1c2",
+ "#68c5ad"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/README b/js/dojo-1.6/dojox/charting/themes/PlotKit/README new file mode 100644 index 0000000..dbf4c81 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/README @@ -0,0 +1,11 @@ +This directory contains a set of themes for the DojoX Charting +engine that are based on the visual stylings of the PlotKit +chart kit, created by Alastair Tse: + +http://www.liquidx.net/plotkit/ + +...whose work we admire. Consider these themes to not be a +ripoff of his fine work, but instead a true homage: his charts +are beautiful, and we stand in awe. + +--trt, 2007-06-08 diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/base.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/base.js new file mode 100644 index 0000000..f2497e7 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/base.js @@ -0,0 +1,64 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PlotKit.base"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.base"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.base");
+
+dojo.require("dojox.charting.Theme");
+
+// the baseline theme for all PlotKIt themes
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ 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:.5},
+ majorTick: {color: "#fff", width: .5, length: 6},
+ minorTick: {color: "#fff", width: .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", // label
+ fontColor: "#666"
+ },
+ marker:{ // any markers on a series.
+ stroke: {width: 2},
+ fill: "#333",
+ font: "normal normal normal 7pt Helvetica,Arial,sans-serif", // label
+ fontColor: "#666"
+ },
+ colors: ["red", "green", "blue"]
+ });
+
+ pk.base.next = function(elementType, mixin, doPost){
+ var theme = dc.Theme.prototype.next.apply(this, arguments);
+ if(elementType == "line"){
+ theme.marker.outline = {width: 2, color: "#fff"};
+ theme.series.stroke.width = 3.5;
+ theme.marker.stroke.width = 2;
+ } else if (elementType == "candlestick"){
+ theme.series.stroke.width = 1;
+ } else {
+ theme.series.stroke.color = "#fff";
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/base.xd.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/base.xd.js new file mode 100644 index 0000000..4c82591 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/base.xd.js @@ -0,0 +1,69 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PlotKit.base"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PlotKit.base"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.base"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.base");
+
+dojo.require("dojox.charting.Theme");
+
+// the baseline theme for all PlotKIt themes
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ 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:.5},
+ majorTick: {color: "#fff", width: .5, length: 6},
+ minorTick: {color: "#fff", width: .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", // label
+ fontColor: "#666"
+ },
+ marker:{ // any markers on a series.
+ stroke: {width: 2},
+ fill: "#333",
+ font: "normal normal normal 7pt Helvetica,Arial,sans-serif", // label
+ fontColor: "#666"
+ },
+ colors: ["red", "green", "blue"]
+ });
+
+ pk.base.next = function(elementType, mixin, doPost){
+ var theme = dc.Theme.prototype.next.apply(this, arguments);
+ if(elementType == "line"){
+ theme.marker.outline = {width: 2, color: "#fff"};
+ theme.series.stroke.width = 3.5;
+ theme.marker.stroke.width = 2;
+ } else if (elementType == "candlestick"){
+ theme.series.stroke.width = 1;
+ } else {
+ theme.series.stroke.color = "#fff";
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/blue.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/blue.js new file mode 100644 index 0000000..a2e414f --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/blue.js @@ -0,0 +1,21 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PlotKit.blue"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.blue"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.blue");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.blue = pk.base.clone();
+ pk.blue.chart.fill = pk.blue.plotarea.fill = "#e7eef6";
+ pk.blue.colors = dc.Theme.defineColors({hue: 217, saturation: 60, low: 40, high: 88});
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/blue.xd.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/blue.xd.js new file mode 100644 index 0000000..71c07ed --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/blue.xd.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PlotKit.blue"],
+["require", "dojox.charting.themes.PlotKit.base"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PlotKit.blue"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.blue"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.blue");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.blue = pk.base.clone();
+ pk.blue.chart.fill = pk.blue.plotarea.fill = "#e7eef6";
+ pk.blue.colors = dc.Theme.defineColors({hue: 217, saturation: 60, low: 40, high: 88});
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/cyan.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/cyan.js new file mode 100644 index 0000000..8f6f719 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/cyan.js @@ -0,0 +1,21 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PlotKit.cyan"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.cyan"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.cyan");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.cyan = pk.base.clone();
+ pk.cyan.chart.fill = pk.cyan.plotarea.fill = "#e6f1f5";
+ pk.cyan.colors = dc.Theme.defineColors({hue: 194, saturation: 60, low: 40, high: 88});
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/cyan.xd.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/cyan.xd.js new file mode 100644 index 0000000..45d8046 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/cyan.xd.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PlotKit.cyan"],
+["require", "dojox.charting.themes.PlotKit.base"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PlotKit.cyan"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.cyan"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.cyan");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.cyan = pk.base.clone();
+ pk.cyan.chart.fill = pk.cyan.plotarea.fill = "#e6f1f5";
+ pk.cyan.colors = dc.Theme.defineColors({hue: 194, saturation: 60, low: 40, high: 88});
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/green.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/green.js new file mode 100644 index 0000000..6d13651 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/green.js @@ -0,0 +1,21 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PlotKit.green"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.green"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.green");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.green = pk.base.clone();
+ pk.green.chart.fill = pk.green.plotarea.fill = "#eff5e6";
+ pk.green.colors = dc.Theme.defineColors({hue: 82, saturation: 60, low: 40, high: 88});
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/green.xd.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/green.xd.js new file mode 100644 index 0000000..ce173aa --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/green.xd.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PlotKit.green"],
+["require", "dojox.charting.themes.PlotKit.base"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PlotKit.green"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.green"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.green");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.green = pk.base.clone();
+ pk.green.chart.fill = pk.green.plotarea.fill = "#eff5e6";
+ pk.green.colors = dc.Theme.defineColors({hue: 82, saturation: 60, low: 40, high: 88});
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/orange.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/orange.js new file mode 100644 index 0000000..c2e435d --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/orange.js @@ -0,0 +1,21 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PlotKit.orange"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.orange"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.orange");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.orange = pk.base.clone();
+ pk.orange.chart.fill = pk.orange.plotarea.fill = "#f5eee6";
+ pk.orange.colors = dc.Theme.defineColors({hue: 31, saturation: 60, low: 40, high: 88});
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/orange.xd.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/orange.xd.js new file mode 100644 index 0000000..efd195f --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/orange.xd.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PlotKit.orange"],
+["require", "dojox.charting.themes.PlotKit.base"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PlotKit.orange"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.orange"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.orange");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.orange = pk.base.clone();
+ pk.orange.chart.fill = pk.orange.plotarea.fill = "#f5eee6";
+ pk.orange.colors = dc.Theme.defineColors({hue: 31, saturation: 60, low: 40, high: 88});
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/purple.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/purple.js new file mode 100644 index 0000000..3803328 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/purple.js @@ -0,0 +1,21 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PlotKit.purple"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.purple"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.purple");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.purple = pk.base.clone();
+ pk.purple.chart.fill = pk.purple.plotarea.fill = "#eee6f5";
+ pk.purple.colors = dc.Theme.defineColors({hue: 271, saturation: 60, low: 40, high: 88});
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/purple.xd.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/purple.xd.js new file mode 100644 index 0000000..5a214b3 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/purple.xd.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PlotKit.purple"],
+["require", "dojox.charting.themes.PlotKit.base"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PlotKit.purple"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.purple"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.purple");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.purple = pk.base.clone();
+ pk.purple.chart.fill = pk.purple.plotarea.fill = "#eee6f5";
+ pk.purple.colors = dc.Theme.defineColors({hue: 271, saturation: 60, low: 40, high: 88});
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/red.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/red.js new file mode 100644 index 0000000..58d1297 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/red.js @@ -0,0 +1,21 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PlotKit.red"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.red"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.red");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.red = pk.base.clone();
+ pk.red.chart.fill = pk.red.plotarea.fill = "#f5e6e6";
+ pk.red.colors = dc.Theme.defineColors({hue: 1, saturation: 60, low: 40, high: 88});
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PlotKit/red.xd.js b/js/dojo-1.6/dojox/charting/themes/PlotKit/red.xd.js new file mode 100644 index 0000000..b8636f6 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PlotKit/red.xd.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PlotKit.red"],
+["require", "dojox.charting.themes.PlotKit.base"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PlotKit.red"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PlotKit.red"] = true;
+dojo.provide("dojox.charting.themes.PlotKit.red");
+dojo.require("dojox.charting.themes.PlotKit.base");
+
+(function(){
+ var dc = dojox.charting, pk = dc.themes.PlotKit;
+
+ pk.red = pk.base.clone();
+ pk.red.chart.fill = pk.red.plotarea.fill = "#f5e6e6";
+ pk.red.colors = dc.Theme.defineColors({hue: 1, saturation: 60, low: 40, high: 88});
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PrimaryColors.js b/js/dojo-1.6/dojox/charting/themes/PrimaryColors.js new file mode 100644 index 0000000..2c67eb4 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PrimaryColors.js @@ -0,0 +1,25 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PrimaryColors"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PrimaryColors"] = true;
+dojo.provide("dojox.charting.themes.PrimaryColors");
+
+dojo.require("dojox.charting.Theme");
+dojo.require("dojox.charting.themes.gradientGenerator");
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes,
+ colors = ["#f00", "#0f0", "#00f", "#ff0", "#0ff", "#f0f"],
+ defaultFill = {type: "linear", space: "plot", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.PrimaryColors = new dc.Theme({
+ seriesThemes: themes.gradientGenerator.generateMiniTheme(colors, defaultFill, 90, 40, 25)
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PrimaryColors.xd.js b/js/dojo-1.6/dojox/charting/themes/PrimaryColors.xd.js new file mode 100644 index 0000000..9d2d2e9 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PrimaryColors.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PrimaryColors"],
+["require", "dojox.charting.Theme"],
+["require", "dojox.charting.themes.gradientGenerator"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PrimaryColors"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PrimaryColors"] = true;
+dojo.provide("dojox.charting.themes.PrimaryColors");
+
+dojo.require("dojox.charting.Theme");
+dojo.require("dojox.charting.themes.gradientGenerator");
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes,
+ colors = ["#f00", "#0f0", "#00f", "#ff0", "#0ff", "#f0f"],
+ defaultFill = {type: "linear", space: "plot", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.PrimaryColors = new dc.Theme({
+ seriesThemes: themes.gradientGenerator.generateMiniTheme(colors, defaultFill, 90, 40, 25)
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/PurpleRain.js b/js/dojo-1.6/dojox/charting/themes/PurpleRain.js new file mode 100644 index 0000000..04b9166 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PurpleRain.js @@ -0,0 +1,28 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.PurpleRain"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PurpleRain"] = true;
+dojo.provide("dojox.charting.themes.PurpleRain");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.PurpleRain=new dxc.Theme({
+ colors: [
+ "#4879bc",
+ "#ef446f",
+ "#3f58a7",
+ "#8254a2",
+ "#4956a6"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/PurpleRain.xd.js b/js/dojo-1.6/dojox/charting/themes/PurpleRain.xd.js new file mode 100644 index 0000000..c132098 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/PurpleRain.xd.js @@ -0,0 +1,33 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.PurpleRain"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.PurpleRain"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.PurpleRain"] = true;
+dojo.provide("dojox.charting.themes.PurpleRain");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.PurpleRain=new dxc.Theme({
+ colors: [
+ "#4879bc",
+ "#ef446f",
+ "#3f58a7",
+ "#8254a2",
+ "#4956a6"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/README b/js/dojo-1.6/dojox/charting/themes/README new file mode 100644 index 0000000..9a3725d --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/README @@ -0,0 +1,5 @@ +Theme authors: + +GreySkies, Shrooms, PlotKit (all): Tom Trenka (ttrenka AT gmail.com) +ET (all): Alex Russell (alex AT dojotoolkit.org) +Ireland, SageToLime, Minty: Damon Dimmick (SitePen, Inc.) diff --git a/js/dojo-1.6/dojox/charting/themes/Renkoo.js b/js/dojo-1.6/dojox/charting/themes/Renkoo.js new file mode 100644 index 0000000..8746d8f --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Renkoo.js @@ -0,0 +1,96 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Renkoo"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Renkoo"] = true;
+dojo.provide("dojox.charting.themes.Renkoo");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 150};
+
+ themes.Renkoo = new dc.Theme({
+ chart: {
+ fill: "#123666",
+ pageStyle: {backgroundColor: "#123666", backgroundImage: "none", color: "#95afdb"}
+ },
+ plotarea: {
+ fill: "#123666"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#95afdb",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#95afdb",
+ position: "center",
+ font: "normal normal normal 7pt Lucida Grande, Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#95afdb" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2.5, color: "#123666"},
+ outline: null,
+ font: "normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#95afdb"
+ },
+ marker: {
+ stroke: {width: 2.5, color: "#ccc"},
+ outline: null,
+ font: "normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#95afdb"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#e7e391", "#f8f7de")},
+ {fill: g(defaultFill, "#ffb6b6", "#ffe8e8")},
+ {fill: g(defaultFill, "#bcda7d", "#eef7da")},
+ {fill: g(defaultFill, "#d5d5d5", "#f4f4f4")},
+ {fill: g(defaultFill, "#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"}}
+ ]
+ });
+
+ themes.Renkoo.next = function(elementType, mixin, doPost){
+ if("slice,column,bar".indexOf(elementType) == -1){
+ // custom processing to substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ s.stroke = { width: 2, color: s.fill.colors[0].color};
+ if(elementType == "line" || elementType == "area"){
+ s.stroke.width = 4;
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Renkoo.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Renkoo.xd.js b/js/dojo-1.6/dojox/charting/themes/Renkoo.xd.js new file mode 100644 index 0000000..88c1b4c --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Renkoo.xd.js @@ -0,0 +1,102 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Renkoo"],
+["require", "dojox.gfx.gradutils"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Renkoo"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Renkoo"] = true;
+dojo.provide("dojox.charting.themes.Renkoo");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 150};
+
+ themes.Renkoo = new dc.Theme({
+ chart: {
+ fill: "#123666",
+ pageStyle: {backgroundColor: "#123666", backgroundImage: "none", color: "#95afdb"}
+ },
+ plotarea: {
+ fill: "#123666"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#95afdb",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#95afdb",
+ position: "center",
+ font: "normal normal normal 7pt Lucida Grande, Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#95afdb" // color of labels
+ }
+ },
+ series: {
+ stroke: {width: 2.5, color: "#123666"},
+ outline: null,
+ font: "normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#95afdb"
+ },
+ marker: {
+ stroke: {width: 2.5, color: "#ccc"},
+ outline: null,
+ font: "normal normal normal 8pt Lucida Grande, Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#95afdb"
+ },
+ seriesThemes: [
+ {fill: g(defaultFill, "#e7e391", "#f8f7de")},
+ {fill: g(defaultFill, "#ffb6b6", "#ffe8e8")},
+ {fill: g(defaultFill, "#bcda7d", "#eef7da")},
+ {fill: g(defaultFill, "#d5d5d5", "#f4f4f4")},
+ {fill: g(defaultFill, "#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"}}
+ ]
+ });
+
+ themes.Renkoo.next = function(elementType, mixin, doPost){
+ if("slice,column,bar".indexOf(elementType) == -1){
+ // custom processing to substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ s.stroke = { width: 2, color: s.fill.colors[0].color};
+ if(elementType == "line" || elementType == "area"){
+ s.stroke.width = 4;
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Renkoo.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/RoyalPurples.js b/js/dojo-1.6/dojox/charting/themes/RoyalPurples.js new file mode 100644 index 0000000..b62a979 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/RoyalPurples.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.RoyalPurples"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.RoyalPurples"] = true;
+dojo.provide("dojox.charting.themes.RoyalPurples");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.RoyalPurples=new dxc.Theme({
+ colors: [
+ "#473980",
+ "#685aa7",
+ "#7970b3",
+ "#231c3f",
+ "#7267ae"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/RoyalPurples.xd.js b/js/dojo-1.6/dojox/charting/themes/RoyalPurples.xd.js new file mode 100644 index 0000000..de62360 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/RoyalPurples.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.RoyalPurples"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.RoyalPurples"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.RoyalPurples"] = true;
+dojo.provide("dojox.charting.themes.RoyalPurples");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.RoyalPurples=new dxc.Theme({
+ colors: [
+ "#473980",
+ "#685aa7",
+ "#7970b3",
+ "#231c3f",
+ "#7267ae"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/SageToLime.js b/js/dojo-1.6/dojox/charting/themes/SageToLime.js new file mode 100644 index 0000000..eacb452 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/SageToLime.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.SageToLime"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.SageToLime"] = true;
+dojo.provide("dojox.charting.themes.SageToLime");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.SageToLime=new dxc.Theme({
+ colors: [
+ "#abdbcb",
+ "#435a51",
+ "#70998b",
+ "#5f8074",
+ "#80ccbb",
+ "#539e8b",
+ "#78a596",
+ "#335f54",
+ "#8dd1c2",
+ "#68c5ad"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/SageToLime.xd.js b/js/dojo-1.6/dojox/charting/themes/SageToLime.xd.js new file mode 100644 index 0000000..7f803a2 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/SageToLime.xd.js @@ -0,0 +1,36 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.SageToLime"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.SageToLime"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.SageToLime"] = true;
+dojo.provide("dojox.charting.themes.SageToLime");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.SageToLime=new dxc.Theme({
+ colors: [
+ "#abdbcb",
+ "#435a51",
+ "#70998b",
+ "#5f8074",
+ "#80ccbb",
+ "#539e8b",
+ "#78a596",
+ "#335f54",
+ "#8dd1c2",
+ "#68c5ad"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Shrooms.js b/js/dojo-1.6/dojox/charting/themes/Shrooms.js new file mode 100644 index 0000000..a108d9e --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Shrooms.js @@ -0,0 +1,35 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Shrooms"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Shrooms"] = true;
+dojo.provide("dojox.charting.themes.Shrooms");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.Shrooms=new dxc.Theme({
+ colors: [
+ "#bf1313", // 0
+ "#69bf13", // 90
+ "#13bfbf", // 180
+ "#6913bf", // 270
+ "#bf6913", // 30
+ "#13bf13", // 120
+ "#1369bf", // 210
+ "#bf13bf", // 300
+ "#bfbf13", // 60
+ "#13bf69", // 150
+ "#1313bf", // 240
+ "#bf1369" // 330
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Shrooms.xd.js b/js/dojo-1.6/dojox/charting/themes/Shrooms.xd.js new file mode 100644 index 0000000..fb63d19 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Shrooms.xd.js @@ -0,0 +1,40 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Shrooms"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Shrooms"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Shrooms"] = true;
+dojo.provide("dojox.charting.themes.Shrooms");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ // notes: colors generated by moving in 30 degree increments around the hue circle,
+ // at 90% saturation, using a B value of 75 (HSB model).
+ var dxc=dojox.charting;
+ dxc.themes.Shrooms=new dxc.Theme({
+ colors: [
+ "#bf1313", // 0
+ "#69bf13", // 90
+ "#13bfbf", // 180
+ "#6913bf", // 270
+ "#bf6913", // 30
+ "#13bf13", // 120
+ "#1369bf", // 210
+ "#bf13bf", // 300
+ "#bfbf13", // 60
+ "#13bf69", // 150
+ "#1313bf", // 240
+ "#bf1369" // 330
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/ThreeD.js b/js/dojo-1.6/dojox/charting/themes/ThreeD.js new file mode 100644 index 0000000..264b498 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/ThreeD.js @@ -0,0 +1,60 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.ThreeD"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.ThreeD"] = true;
+dojo.provide("dojox.charting.themes.ThreeD");
+
+dojo.require("dojo.colors"); // for dojo.Color.sanitize()
+dojo.require("dojox.charting.Theme");
+dojo.require("dojox.charting.themes.gradientGenerator");
+
+dojo.require("dojox.charting.themes.PrimaryColors"); // as a baseline theme
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme,
+ gi = themes.gradientGenerator.generateGradientByIntensity,
+ colors = ["#f00", "#0f0", "#00f", "#ff0", "#0ff", "#f0f"], // the same is in PrimaryColors
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 100, y2: 0},
+ // 3D cylinder map is calculated using dojox.gfx3d
+ cyl3dMap = [
+ {o: 0.00, i: 174}, {o: 0.08, i: 231}, {o: 0.18, i: 237}, {o: 0.30, i: 231},
+ {o: 0.39, i: 221}, {o: 0.49, i: 206}, {o: 0.58, i: 187}, {o: 0.68, i: 165},
+ {o: 0.80, i: 128}, {o: 0.90, i: 102}, {o: 1.00, i: 174}
+ ],
+ hiliteIndex = 2, hiliteIntensity = 100, lumStroke = 50,
+ cyl3dFills = dojo.map(colors, function(c){
+ var fill = dojo.delegate(defaultFill),
+ colors = fill.colors = themes.gradientGenerator.generateGradientByIntensity(c, cyl3dMap),
+ hilite = colors[hiliteIndex].color;
+ // add highlight
+ hilite.r += hiliteIntensity;
+ hilite.g += hiliteIntensity;
+ hilite.b += hiliteIntensity;
+ hilite.sanitize();
+ return fill;
+ });
+
+ themes.ThreeD = themes.PrimaryColors.clone();
+ themes.ThreeD.series.shadow = {dx: 1, dy: 1, width: 3, color: [0, 0, 0, 0.15]};
+
+ themes.ThreeD.next = function(elementType, mixin, doPost){
+ if(elementType == "bar" || elementType == "column"){
+ // custom processing for bars and columns: substitute fills
+ var index = this._current % this.seriesThemes.length,
+ s = this.seriesThemes[index], old = s.fill;
+ s.fill = cyl3dFills[index];
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ s.fill = old;
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/ThreeD.xd.js b/js/dojo-1.6/dojox/charting/themes/ThreeD.xd.js new file mode 100644 index 0000000..eed943f --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/ThreeD.xd.js @@ -0,0 +1,68 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.ThreeD"],
+["require", "dojo.colors"],
+["require", "dojox.charting.Theme"],
+["require", "dojox.charting.themes.gradientGenerator"],
+["require", "dojox.charting.themes.PrimaryColors"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.ThreeD"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.ThreeD"] = true;
+dojo.provide("dojox.charting.themes.ThreeD");
+
+dojo.require("dojo.colors"); // for dojo.Color.sanitize()
+dojo.require("dojox.charting.Theme");
+dojo.require("dojox.charting.themes.gradientGenerator");
+
+dojo.require("dojox.charting.themes.PrimaryColors"); // as a baseline theme
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme,
+ gi = themes.gradientGenerator.generateGradientByIntensity,
+ colors = ["#f00", "#0f0", "#00f", "#ff0", "#0ff", "#f0f"], // the same is in PrimaryColors
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 100, y2: 0},
+ // 3D cylinder map is calculated using dojox.gfx3d
+ cyl3dMap = [
+ {o: 0.00, i: 174}, {o: 0.08, i: 231}, {o: 0.18, i: 237}, {o: 0.30, i: 231},
+ {o: 0.39, i: 221}, {o: 0.49, i: 206}, {o: 0.58, i: 187}, {o: 0.68, i: 165},
+ {o: 0.80, i: 128}, {o: 0.90, i: 102}, {o: 1.00, i: 174}
+ ],
+ hiliteIndex = 2, hiliteIntensity = 100, lumStroke = 50,
+ cyl3dFills = dojo.map(colors, function(c){
+ var fill = dojo.delegate(defaultFill),
+ colors = fill.colors = themes.gradientGenerator.generateGradientByIntensity(c, cyl3dMap),
+ hilite = colors[hiliteIndex].color;
+ // add highlight
+ hilite.r += hiliteIntensity;
+ hilite.g += hiliteIntensity;
+ hilite.b += hiliteIntensity;
+ hilite.sanitize();
+ return fill;
+ });
+
+ themes.ThreeD = themes.PrimaryColors.clone();
+ themes.ThreeD.series.shadow = {dx: 1, dy: 1, width: 3, color: [0, 0, 0, 0.15]};
+
+ themes.ThreeD.next = function(elementType, mixin, doPost){
+ if(elementType == "bar" || elementType == "column"){
+ // custom processing for bars and columns: substitute fills
+ var index = this._current % this.seriesThemes.length,
+ s = this.seriesThemes[index], old = s.fill;
+ s.fill = cyl3dFills[index];
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ s.fill = old;
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Tom.js b/js/dojo-1.6/dojox/charting/themes/Tom.js new file mode 100644 index 0000000..736c717 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Tom.js @@ -0,0 +1,98 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Tom"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Tom"] = true;
+dojo.provide("dojox.charting.themes.Tom");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Tom = new dc.Theme({
+ chart: {
+ fill: "#181818",
+ stroke: {color: "#181818"},
+ pageStyle: {backgroundColor: "#181818", backgroundImage: "none", color: "#eaf2cb"}
+ },
+ plotarea: {
+ fill: "#181818"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#a0a68b",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#888c76",
+ position: "center",
+ font: "normal normal normal 7pt Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#888c76" // color of labels
+ }
+ },
+ 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(defaultFill, "#bf9e0a", "#ecc20c")},
+ {fill: g(defaultFill, "#73b086", "#95e5af")},
+ {fill: g(defaultFill, "#c7212d", "#ed2835")},
+ {fill: g(defaultFill, "#87ab41", "#b6e557")},
+ {fill: g(defaultFill, "#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"}}
+ ]
+ });
+
+ themes.Tom.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 4, color: s.fill.colors[0].color};
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.outline;
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Tom.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Tom.xd.js b/js/dojo-1.6/dojox/charting/themes/Tom.xd.js new file mode 100644 index 0000000..788e013 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Tom.xd.js @@ -0,0 +1,104 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Tom"],
+["require", "dojox.gfx.gradutils"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Tom"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Tom"] = true;
+dojo.provide("dojox.charting.themes.Tom");
+
+dojo.require("dojox.gfx.gradutils");
+dojo.require("dojox.charting.Theme");
+
+// created by Tom Trenka
+
+(function(){
+ var dc = dojox.charting, themes = dc.themes, Theme = dc.Theme, g = Theme.generateGradient,
+ defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
+
+ themes.Tom = new dc.Theme({
+ chart: {
+ fill: "#181818",
+ stroke: {color: "#181818"},
+ pageStyle: {backgroundColor: "#181818", backgroundImage: "none", color: "#eaf2cb"}
+ },
+ plotarea: {
+ fill: "#181818"
+ },
+ axis:{
+ stroke: { // the axis itself
+ color: "#a0a68b",
+ width: 1
+ },
+ tick: { // used as a foundation for all ticks
+ color: "#888c76",
+ position: "center",
+ font: "normal normal normal 7pt Helvetica, Arial, sans-serif", // labels on axis
+ fontColor: "#888c76" // color of labels
+ }
+ },
+ 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(defaultFill, "#bf9e0a", "#ecc20c")},
+ {fill: g(defaultFill, "#73b086", "#95e5af")},
+ {fill: g(defaultFill, "#c7212d", "#ed2835")},
+ {fill: g(defaultFill, "#87ab41", "#b6e557")},
+ {fill: g(defaultFill, "#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"}}
+ ]
+ });
+
+ themes.Tom.next = function(elementType, mixin, doPost){
+ var isLine = elementType == "line";
+ if(isLine || elementType == "area"){
+ // custom processing for lines: substitute colors
+ var s = this.seriesThemes[this._current % this.seriesThemes.length];
+ s.fill.space = "plot";
+ if(isLine){
+ s.stroke = { width: 4, color: s.fill.colors[0].color};
+ }
+ var theme = Theme.prototype.next.apply(this, arguments);
+ // cleanup
+ delete s.outline;
+ delete s.stroke;
+ s.fill.space = "shape";
+ return theme;
+ }
+ return Theme.prototype.next.apply(this, arguments);
+ };
+
+ themes.Tom.post = function(theme, elementType){
+ theme = Theme.prototype.post.apply(this, arguments);
+ if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
+ theme.series.fill = dojox.gfx.gradutils.reverse(theme.series.fill);
+ }
+ return theme;
+ };
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Tufte.js b/js/dojo-1.6/dojox/charting/themes/Tufte.js new file mode 100644 index 0000000..0b7ec3c --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Tufte.js @@ -0,0 +1,65 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Tufte"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Tufte"] = true;
+dojo.provide("dojox.charting.themes.Tufte");
+dojo.require("dojox.charting.Theme");
+
+/*
+ A charting theme based on the principles championed by
+ Edward Tufte. By Alex Russell, Dojo Project Lead.
+*/
+dojox.charting.themes.Tufte = new dojox.charting.Theme({
+ chart: {
+ stroke: null,
+ fill: "inherit"
+ },
+ plotarea: {
+ // stroke: { width: 0.2, color: "#666666" },
+ stroke: null,
+ fill: "transparent"
+ },
+ axis: {
+ stroke: {width: 1, color: "#ccc"},
+ majorTick:{
+ color: "black",
+ width: 1,
+ length: 5
+ },
+ minorTick: {
+ color: "#666",
+ width: 1,
+ length: 2
+ },
+ font: "normal normal normal 8pt Tahoma",
+ fontColor: "#999"
+ },
+ series: {
+ outline: null,
+ stroke: {width: 1, color: "black"},
+ // fill: "#3b444b",
+ fill: new dojo.Color([0x3b, 0x44, 0x4b, 0.85]),
+ font: "normal normal normal 7pt Tahoma",
+ fontColor: "#717171"
+ },
+ marker: {
+ stroke: {width: 1, color: "black"},
+ fill: "#333",
+ font: "normal normal normal 7pt Tahoma",
+ fontColor: "black"
+ },
+ colors:[
+ dojo.colorFromHex("#8a8c8f"),
+ dojo.colorFromHex("#4b4b4b"),
+ dojo.colorFromHex("#3b444b"),
+ dojo.colorFromHex("#2e2d30"),
+ dojo.colorFromHex("#000000")
+ ]
+});
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Tufte.xd.js b/js/dojo-1.6/dojox/charting/themes/Tufte.xd.js new file mode 100644 index 0000000..d695bd7 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Tufte.xd.js @@ -0,0 +1,70 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Tufte"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Tufte"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Tufte"] = true;
+dojo.provide("dojox.charting.themes.Tufte");
+dojo.require("dojox.charting.Theme");
+
+/*
+ A charting theme based on the principles championed by
+ Edward Tufte. By Alex Russell, Dojo Project Lead.
+*/
+dojox.charting.themes.Tufte = new dojox.charting.Theme({
+ chart: {
+ stroke: null,
+ fill: "inherit"
+ },
+ plotarea: {
+ // stroke: { width: 0.2, color: "#666666" },
+ stroke: null,
+ fill: "transparent"
+ },
+ axis: {
+ stroke: {width: 1, color: "#ccc"},
+ majorTick:{
+ color: "black",
+ width: 1,
+ length: 5
+ },
+ minorTick: {
+ color: "#666",
+ width: 1,
+ length: 2
+ },
+ font: "normal normal normal 8pt Tahoma",
+ fontColor: "#999"
+ },
+ series: {
+ outline: null,
+ stroke: {width: 1, color: "black"},
+ // fill: "#3b444b",
+ fill: new dojo.Color([0x3b, 0x44, 0x4b, 0.85]),
+ font: "normal normal normal 7pt Tahoma",
+ fontColor: "#717171"
+ },
+ marker: {
+ stroke: {width: 1, color: "black"},
+ fill: "#333",
+ font: "normal normal normal 7pt Tahoma",
+ fontColor: "black"
+ },
+ colors:[
+ dojo.colorFromHex("#8a8c8f"),
+ dojo.colorFromHex("#4b4b4b"),
+ dojo.colorFromHex("#3b444b"),
+ dojo.colorFromHex("#2e2d30"),
+ dojo.colorFromHex("#000000")
+ ]
+});
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/WatersEdge.js b/js/dojo-1.6/dojox/charting/themes/WatersEdge.js new file mode 100644 index 0000000..31d4fcf --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/WatersEdge.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.WatersEdge"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.WatersEdge"] = true;
+dojo.provide("dojox.charting.themes.WatersEdge");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.WatersEdge=new dxc.Theme({
+ colors: [
+ "#437cc0",
+ "#6256a5",
+ "#4552a3",
+ "#43c4f2",
+ "#4b66b0"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/WatersEdge.xd.js b/js/dojo-1.6/dojox/charting/themes/WatersEdge.xd.js new file mode 100644 index 0000000..ef86d65 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/WatersEdge.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.WatersEdge"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.WatersEdge"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.WatersEdge"] = true;
+dojo.provide("dojox.charting.themes.WatersEdge");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.WatersEdge=new dxc.Theme({
+ colors: [
+ "#437cc0",
+ "#6256a5",
+ "#4552a3",
+ "#43c4f2",
+ "#4b66b0"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/Wetland.js b/js/dojo-1.6/dojox/charting/themes/Wetland.js new file mode 100644 index 0000000..4c767e4 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Wetland.js @@ -0,0 +1,26 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.Wetland"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Wetland"] = true;
+dojo.provide("dojox.charting.themes.Wetland");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Wetland=new dxc.Theme({
+ colors: [
+ "#bfbc64",
+ "#737130",
+ "#73373b",
+ "#7dafca",
+ "#8d3c42"
+ ]
+ });
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/Wetland.xd.js b/js/dojo-1.6/dojox/charting/themes/Wetland.xd.js new file mode 100644 index 0000000..1bf6657 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/Wetland.xd.js @@ -0,0 +1,31 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.Wetland"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.Wetland"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.Wetland"] = true;
+dojo.provide("dojox.charting.themes.Wetland");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var dxc=dojox.charting;
+ dxc.themes.Wetland=new dxc.Theme({
+ colors: [
+ "#bfbc64",
+ "#737130",
+ "#73373b",
+ "#7dafca",
+ "#8d3c42"
+ ]
+ });
+})();
+
+}
+
+}};});
diff --git a/js/dojo-1.6/dojox/charting/themes/gradientGenerator.js b/js/dojo-1.6/dojox/charting/themes/gradientGenerator.js new file mode 100644 index 0000000..36ca070 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/gradientGenerator.js @@ -0,0 +1,94 @@ +/*
+ Copyright (c) 2004-2011, 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.themes.gradientGenerator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.gradientGenerator"] = true;
+dojo.provide("dojox.charting.themes.gradientGenerator");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var gg = dojox.charting.themes.gradientGenerator;
+
+ gg.generateFills = function(colors, fillPattern, lumFrom, lumTo){
+ // summary:
+ // generates 2-color gradients using pure colors, a fill pattern, and two luminance values
+ // colors: Array:
+ // Array of colors to generate gradients for each.
+ // fillPattern: Object:
+ // Gradient fill descriptor which colors list will be generated.
+ // lumFrom: Number:
+ // Initial luminance value (0-100).
+ // lumTo: Number:
+ // Final luminance value (0-100).
+ var Theme = dojox.charting.Theme;
+ return dojo.map(colors, function(c){ // Array
+ return Theme.generateHslGradient(c, fillPattern, lumFrom, lumTo);
+ });
+ };
+
+ gg.updateFills = function(themes, fillPattern, lumFrom, lumTo){
+ // summary:
+ // transforms solid color fills into 2-color gradients using a fill pattern, and two luminance values
+ // themes: Array:
+ // Array of mini-themes (usually series themes or marker themes), which fill will be transformed.
+ // fillPattern: Object:
+ // Gradient fill descriptor which colors list will be generated.
+ // lumFrom: Number:
+ // Initial luminance value (0-100).
+ // lumTo: Number:
+ // Final luminance value (0-100).
+ var Theme = dojox.charting.Theme;
+ dojo.forEach(themes, function(t){
+ if(t.fill && !t.fill.type){
+ t.fill = Theme.generateHslGradient(t.fill, fillPattern, lumFrom, lumTo);
+ }
+ });
+ };
+
+ gg.generateMiniTheme = function(colors, fillPattern, lumFrom, lumTo, lumStroke){
+ // summary:
+ // generates mini-themes with 2-color gradients using colors, a fill pattern, and three luminance values
+ // colors: Array:
+ // Array of colors to generate gradients for each.
+ // fillPattern: Object:
+ // Gradient fill descriptor which colors list will be generated.
+ // lumFrom: Number:
+ // Initial luminance value (0-100).
+ // lumTo: Number:
+ // Final luminance value (0-100).
+ // lumStroke: Number:
+ // Stroke luminance value (0-100).
+ var Theme = dojox.charting.Theme;
+ return dojo.map(colors, function(c){ // Array
+ c = new dojox.color.Color(c);
+ return {
+ fill: Theme.generateHslGradient(c, fillPattern, lumFrom, lumTo),
+ stroke: {color: Theme.generateHslColor(c, lumStroke)}
+ }
+ });
+ };
+
+ gg.generateGradientByIntensity = function(color, intensityMap){
+ // summary:
+ // generates gradient colors using an intensity map
+ // color: dojo.Color:
+ // Color to use to generate gradients.
+ // intensityMap: Array:
+ // Array of tuples {o, i}, where o is a gradient offset (0-1),
+ // and i is an intensity (0-255).
+ color = new dojo.Color(color);
+ return dojo.map(intensityMap, function(stop){ // Array
+ var s = stop.i / 255;
+ return {
+ offset: stop.o,
+ color: new dojo.Color([color.r * s, color.g * s, color.b * s, color.a])
+ };
+ });
+ }
+})();
+
+}
diff --git a/js/dojo-1.6/dojox/charting/themes/gradientGenerator.xd.js b/js/dojo-1.6/dojox/charting/themes/gradientGenerator.xd.js new file mode 100644 index 0000000..1a438d8 --- /dev/null +++ b/js/dojo-1.6/dojox/charting/themes/gradientGenerator.xd.js @@ -0,0 +1,99 @@ +/*
+ Copyright (c) 2004-2011, 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
+*/
+
+
+dojo._xdResourceLoaded(function(dojo, dijit, dojox){
+return {depends: [["provide", "dojox.charting.themes.gradientGenerator"],
+["require", "dojox.charting.Theme"]],
+defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.charting.themes.gradientGenerator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.charting.themes.gradientGenerator"] = true;
+dojo.provide("dojox.charting.themes.gradientGenerator");
+dojo.require("dojox.charting.Theme");
+
+(function(){
+ var gg = dojox.charting.themes.gradientGenerator;
+
+ gg.generateFills = function(colors, fillPattern, lumFrom, lumTo){
+ // summary:
+ // generates 2-color gradients using pure colors, a fill pattern, and two luminance values
+ // colors: Array:
+ // Array of colors to generate gradients for each.
+ // fillPattern: Object:
+ // Gradient fill descriptor which colors list will be generated.
+ // lumFrom: Number:
+ // Initial luminance value (0-100).
+ // lumTo: Number:
+ // Final luminance value (0-100).
+ var Theme = dojox.charting.Theme;
+ return dojo.map(colors, function(c){ // Array
+ return Theme.generateHslGradient(c, fillPattern, lumFrom, lumTo);
+ });
+ };
+
+ gg.updateFills = function(themes, fillPattern, lumFrom, lumTo){
+ // summary:
+ // transforms solid color fills into 2-color gradients using a fill pattern, and two luminance values
+ // themes: Array:
+ // Array of mini-themes (usually series themes or marker themes), which fill will be transformed.
+ // fillPattern: Object:
+ // Gradient fill descriptor which colors list will be generated.
+ // lumFrom: Number:
+ // Initial luminance value (0-100).
+ // lumTo: Number:
+ // Final luminance value (0-100).
+ var Theme = dojox.charting.Theme;
+ dojo.forEach(themes, function(t){
+ if(t.fill && !t.fill.type){
+ t.fill = Theme.generateHslGradient(t.fill, fillPattern, lumFrom, lumTo);
+ }
+ });
+ };
+
+ gg.generateMiniTheme = function(colors, fillPattern, lumFrom, lumTo, lumStroke){
+ // summary:
+ // generates mini-themes with 2-color gradients using colors, a fill pattern, and three luminance values
+ // colors: Array:
+ // Array of colors to generate gradients for each.
+ // fillPattern: Object:
+ // Gradient fill descriptor which colors list will be generated.
+ // lumFrom: Number:
+ // Initial luminance value (0-100).
+ // lumTo: Number:
+ // Final luminance value (0-100).
+ // lumStroke: Number:
+ // Stroke luminance value (0-100).
+ var Theme = dojox.charting.Theme;
+ return dojo.map(colors, function(c){ // Array
+ c = new dojox.color.Color(c);
+ return {
+ fill: Theme.generateHslGradient(c, fillPattern, lumFrom, lumTo),
+ stroke: {color: Theme.generateHslColor(c, lumStroke)}
+ }
+ });
+ };
+
+ gg.generateGradientByIntensity = function(color, intensityMap){
+ // summary:
+ // generates gradient colors using an intensity map
+ // color: dojo.Color:
+ // Color to use to generate gradients.
+ // intensityMap: Array:
+ // Array of tuples {o, i}, where o is a gradient offset (0-1),
+ // and i is an intensity (0-255).
+ color = new dojo.Color(color);
+ return dojo.map(intensityMap, function(stop){ // Array
+ var s = stop.i / 255;
+ return {
+ offset: stop.o,
+ color: new dojo.Color([color.r * s, color.g * s, color.b * s, color.a])
+ };
+ });
+ }
+})();
+
+}
+
+}};});
|
