diff options
Diffstat (limited to 'js/dojo-1.7.2/dojox/charting/themes')
44 files changed, 1323 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dojox/charting/themes/Adobebricks.js b/js/dojo-1.7.2/dojox/charting/themes/Adobebricks.js new file mode 100644 index 0000000..1dd7e13 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Adobebricks.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/Adobebricks", ["../Theme", "./common"], function(Theme, themes){ + + themes.Adobebricks=new Theme({ + colors: [ + "#7f2518", + "#3e170c", + "#cc3927", + "#651f0e", + "#8c271c" + ] + }); + + return themes.Adobebricks; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Algae.js b/js/dojo-1.7.2/dojox/charting/themes/Algae.js new file mode 100644 index 0000000..68bd6bf --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Algae.js @@ -0,0 +1,13 @@ +//>>built +define("dojox/charting/themes/Algae", ["../Theme", "./common"], function(Theme, themes){ + themes.Algae = new Theme({ + colors: [ + "#57808f", + "#506885", + "#4f7878", + "#558f7f", + "#508567" + ] + }); + return themes.Algae; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Bahamation.js b/js/dojo-1.7.2/dojox/charting/themes/Bahamation.js new file mode 100644 index 0000000..7538902 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Bahamation.js @@ -0,0 +1,13 @@ +//>>built +define("dojox/charting/themes/Bahamation", ["../Theme", "./common"], function(Theme, themes){ + themes.Bahamation=new Theme({ + colors: [ + "#3f9998", + "#3fc0c3", + "#70c058", + "#ef446f", + "#c663a6" + ] + }); + return themes.Bahamation; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/BlueDusk.js b/js/dojo-1.7.2/dojox/charting/themes/BlueDusk.js new file mode 100644 index 0000000..71b8e7f --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/BlueDusk.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/BlueDusk", ["../Theme", "./common"], function(Theme, themes){ + + themes.BlueDusk=new Theme({ + colors: [ + "#292e76", + "#3e56a6", + "#10143f", + "#33449c", + "#798dcd" + ] + }); + + return themes.BlueDusk; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Charged.js b/js/dojo-1.7.2/dojox/charting/themes/Charged.js new file mode 100644 index 0000000..6610509 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Charged.js @@ -0,0 +1,88 @@ +//>>built +define("dojox/charting/themes/Charged", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){ + + var g = Theme.generateGradient, + defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 75}; + + themes.Charged = new 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 = gradutils.reverse(theme.series.fill); + } + return theme; + }; + + return themes.Charged; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Chris.js b/js/dojo-1.7.2/dojox/charting/themes/Chris.js new file mode 100644 index 0000000..4d85bce --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Chris.js @@ -0,0 +1,76 @@ +//>>built +define("dojox/charting/themes/Chris", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){ + + // created by Christopher Anderson + + var g = Theme.generateGradient, + defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100}; + + themes.Chris = new 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 = gradutils.reverse(theme.series.fill); + } + return theme; + }; + + return themes.Chris; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Claro.js b/js/dojo-1.7.2/dojox/charting/themes/Claro.js new file mode 100644 index 0000000..f9f96f2 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Claro.js @@ -0,0 +1,107 @@ +//>>built +define("dojox/charting/themes/Claro", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){ + // created by Tom Trenka + + var g = Theme.generateGradient, + defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100}; + + themes.Claro = new 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 = gradutils.reverse(theme.series.fill); + } + return theme; + }; + + return themes.Claro; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/CubanShirts.js b/js/dojo-1.7.2/dojox/charting/themes/CubanShirts.js new file mode 100644 index 0000000..171af16 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/CubanShirts.js @@ -0,0 +1,17 @@ +//>>built +define("dojox/charting/themes/CubanShirts", ["../Theme", "./common"], function(Theme, themes){ + + // notes: colors generated by moving in 30 degree increments around the hue circle, + // at 90% saturation, using a B value of 75 (HSB model). + themes.CubanShirts=new Theme({ + colors: [ + "#d42d2a", + "#004f80", + "#989736", + "#2085c7", + "#7f7f33" + ] + }); + + return themes.CubanShirts; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Desert.js b/js/dojo-1.7.2/dojox/charting/themes/Desert.js new file mode 100644 index 0000000..6265d3a --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Desert.js @@ -0,0 +1,17 @@ +//>>built +define("dojox/charting/themes/Desert", ["../Theme", "./common"], function(Theme, themes){ + + // notes: colors generated by moving in 30 degree increments around the hue circle, + // at 90% saturation, using a B value of 75 (HSB model). + themes.Desert=new Theme({ + colors: [ + "#ffebd5", + "#806544", + "#fdc888", + "#80766b", + "#cda26e" + ] + }); + + return themes.Desert; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Distinctive.js b/js/dojo-1.7.2/dojox/charting/themes/Distinctive.js new file mode 100644 index 0000000..fefaf31 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Distinctive.js @@ -0,0 +1,43 @@ +//>>built +define("dojox/charting/themes/Distinctive", ["../Theme", "./common"], function(Theme, themes){ + + themes.Distinctive=new 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" + + ] + }); + + return themes.Distinctive; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Dollar.js b/js/dojo-1.7.2/dojox/charting/themes/Dollar.js new file mode 100644 index 0000000..6af8b5e --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Dollar.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/Dollar", ["../Theme", "./common"], function(Theme, themes){ + + themes.Dollar=new Theme({ + colors: [ + "#A4CE67", + "#739363", + "#6B824A", + "#343434", + "#636563" + ] + }); + + return themes.Dollar; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Electric.js b/js/dojo-1.7.2/dojox/charting/themes/Electric.js new file mode 100644 index 0000000..ce49b32 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Electric.js @@ -0,0 +1,89 @@ +//>>built +define("dojox/charting/themes/Electric", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){ + + var g = Theme.generateGradient, + defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 75}; + + themes.Electric = new 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 = gradutils.reverse(theme.series.fill); + } + return theme; + }; + + return themes.Electric; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Grasshopper.js b/js/dojo-1.7.2/dojox/charting/themes/Grasshopper.js new file mode 100644 index 0000000..5d1392d --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Grasshopper.js @@ -0,0 +1,13 @@ +//>>built +define("dojox/charting/themes/Grasshopper", ["dojo/_base/lang","../Theme", "./common"], function(lang, Theme, themes){ + themes.Grasshopper=new Theme({ + colors: [ + "#208040", + "#40b657", + "#78c25e", + "#14401f", + "#64bd5f" + ] + }); + return themes.Grasshopper; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Grasslands.js b/js/dojo-1.7.2/dojox/charting/themes/Grasslands.js new file mode 100644 index 0000000..e6493c9 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Grasslands.js @@ -0,0 +1,17 @@ +//>>built +define("dojox/charting/themes/Grasslands", ["../Theme", "./common"], function(Theme, themes){ + + // notes: colors generated by moving in 30 degree increments around the hue circle, + // at 90% saturation, using a B value of 75 (HSB model). + themes.Grasslands=new Theme({ + colors: [ + "#70803a", + "#dde574", + "#788062", + "#b1cc5d", + "#eff2c2" + ] + }); + + return themes.Grasslands; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/GreySkies.js b/js/dojo-1.7.2/dojox/charting/themes/GreySkies.js new file mode 100644 index 0000000..c8c7fb1 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/GreySkies.js @@ -0,0 +1,7 @@ +//>>built +define("dojox/charting/themes/GreySkies", ["../Theme", "./common"], function(Theme, themes){ + + themes.GreySkies=new Theme(Theme._def); + + return themes.GreySkies; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Harmony.js b/js/dojo-1.7.2/dojox/charting/themes/Harmony.js new file mode 100644 index 0000000..4342cb1 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Harmony.js @@ -0,0 +1,42 @@ +//>>built +define("dojox/charting/themes/Harmony", ["../Theme", "./common"], function(Theme, themes){ + + themes.Harmony=new 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" + ] + }); + + return themes.Harmony; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/IndigoNation.js b/js/dojo-1.7.2/dojox/charting/themes/IndigoNation.js new file mode 100644 index 0000000..c34e083 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/IndigoNation.js @@ -0,0 +1,17 @@ +//>>built +define("dojox/charting/themes/IndigoNation", ["../Theme", "./common"], function(Theme, themes){ + + // notes: colors generated by moving in 30 degree increments around the hue circle, + // at 90% saturation, using a B value of 75 (HSB model). + themes.IndigoNation=new Theme({ + colors: [ + "#93a4d0", + "#3b4152", + "#687291", + "#9faed9", + "#8290b8" + ] + }); + + return themes.IndigoNation; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Ireland.js b/js/dojo-1.7.2/dojox/charting/themes/Ireland.js new file mode 100644 index 0000000..6c2c749 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Ireland.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/Ireland", ["../Theme", "./common"], function(Theme, themes){ + + themes.Ireland=new Theme({ + colors: [ + "#abdbcb", + "#435a51", + "#70998b", + "#78d596", + "#5f8074" + ] + }); + + return themes.Ireland; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Julie.js b/js/dojo-1.7.2/dojox/charting/themes/Julie.js new file mode 100644 index 0000000..f60188f --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Julie.js @@ -0,0 +1,69 @@ +//>>built +define("dojox/charting/themes/Julie", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils){ + + // created by Julie Santilli (Claro-based theme) + + var themes = dojox.charting.themes, g = Theme.generateGradient, + defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100}; + + themes.Julie = new 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 = gradutils.reverse(theme.series.fill); + } + return theme; + }; + + return themes.Julie; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/MiamiNice.js b/js/dojo-1.7.2/dojox/charting/themes/MiamiNice.js new file mode 100644 index 0000000..b600625 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/MiamiNice.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/MiamiNice", ["../Theme", "./common"], function(Theme, themes){ + + themes.MiamiNice=new Theme({ + colors: [ + "#7f9599", + "#45b8cc", + "#8ecfb0", + "#f8acac", + "#cc4482" + ] + }); + + return themes.MiamiNice; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Midwest.js b/js/dojo-1.7.2/dojox/charting/themes/Midwest.js new file mode 100644 index 0000000..4fcb9f7 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Midwest.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/Midwest", ["../Theme", "./common"], function(Theme, themes){ + + themes.Midwest=new Theme({ + colors: [ + "#927b51", + "#a89166", + "#80c31c", + "#bcdd5a", + "#aebc21" + ] + }); + + return themes.Midwest; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Minty.js b/js/dojo-1.7.2/dojox/charting/themes/Minty.js new file mode 100644 index 0000000..50c7e4f --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Minty.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/Minty", ["../Theme", "./common"], function(Theme, themes){ + + themes.Minty=new Theme({ + colors: [ + "#80ccbb", + "#539e8b", + "#335f54", + "#8dd1c2", + "#68c5ad" + ] + }); + + return themes.Minty; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PlotKit/README b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/README new file mode 100644 index 0000000..dbf4c81 --- /dev/null +++ b/js/dojo-1.7.2/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.7.2/dojox/charting/themes/PlotKit/base.js b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/base.js new file mode 100644 index 0000000..4776c67 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/base.js @@ -0,0 +1,54 @@ +//>>built +define("dojox/charting/themes/PlotKit/base", ["dojo/_base/kernel","dojo/_base/lang","../../Theme", "../common"], + function(dojo, lang, Theme, themes){ + + // the baseline theme for all PlotKIt themes + var pk = lang.getObject("PlotKit", true, themes); + + pk.base = new 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 = 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; + }; + + return pk; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PlotKit/blue.js b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/blue.js new file mode 100644 index 0000000..e868e14 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/blue.js @@ -0,0 +1,8 @@ +//>>built +define("dojox/charting/themes/PlotKit/blue", ["./base", "../../Theme"], function(pk, Theme){ + pk.blue = pk.base.clone(); + pk.blue.chart.fill = pk.blue.plotarea.fill = "#e7eef6"; + pk.blue.colors = Theme.defineColors({hue: 217, saturation: 60, low: 40, high: 88}); + + return pk.blue; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PlotKit/cyan.js b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/cyan.js new file mode 100644 index 0000000..7e21bae --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/cyan.js @@ -0,0 +1,8 @@ +//>>built +define("dojox/charting/themes/PlotKit/cyan", ["./base", "../../Theme"], function(pk, Theme){ + pk.cyan = pk.base.clone(); + pk.cyan.chart.fill = pk.cyan.plotarea.fill = "#e6f1f5"; + pk.cyan.colors = Theme.defineColors({hue: 194, saturation: 60, low: 40, high: 88}); + + return pk.cyan; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PlotKit/green.js b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/green.js new file mode 100644 index 0000000..241f42a --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/green.js @@ -0,0 +1,8 @@ +//>>built +define("dojox/charting/themes/PlotKit/green", ["./base", "../../Theme"], function(pk, Theme){ + pk.green = pk.base.clone(); + pk.green.chart.fill = pk.green.plotarea.fill = "#eff5e6"; + pk.green.colors = Theme.defineColors({hue: 82, saturation: 60, low: 40, high: 88}); + + return pk.green; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PlotKit/orange.js b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/orange.js new file mode 100644 index 0000000..22256bc --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/orange.js @@ -0,0 +1,8 @@ +//>>built +define("dojox/charting/themes/PlotKit/orange", ["./base", "../../Theme"], function(pk, Theme){ + pk.orange = pk.base.clone(); + pk.orange.chart.fill = pk.orange.plotarea.fill = "#f5eee6"; + pk.orange.colors = Theme.defineColors({hue: 31, saturation: 60, low: 40, high: 88}); + + return pk.orange; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PlotKit/purple.js b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/purple.js new file mode 100644 index 0000000..30b3552 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/purple.js @@ -0,0 +1,8 @@ +//>>built +define("dojox/charting/themes/PlotKit/purple", ["./base", "../../Theme"], function(pk, Theme){ + pk.purple = pk.base.clone(); + pk.purple.chart.fill = pk.purple.plotarea.fill = "#eee6f5"; + pk.purple.colors = Theme.defineColors({hue: 271, saturation: 60, low: 40, high: 88}); + + return pk.purple; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PlotKit/red.js b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/red.js new file mode 100644 index 0000000..9b77eff --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PlotKit/red.js @@ -0,0 +1,8 @@ +//>>built +define("dojox/charting/themes/PlotKit/red", ["./base", "../../Theme"], function(pk, Theme){ + pk.red = pk.base.clone(); + pk.red.chart.fill = pk.red.plotarea.fill = "#f5e6e6"; + pk.red.colors = Theme.defineColors({hue: 1, saturation: 60, low: 40, high: 88}); + + return pk.red; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PrimaryColors.js b/js/dojo-1.7.2/dojox/charting/themes/PrimaryColors.js new file mode 100644 index 0000000..95d7860 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PrimaryColors.js @@ -0,0 +1,12 @@ +//>>built +define("dojox/charting/themes/PrimaryColors", ["../Theme", "./gradientGenerator", "./common"], function(Theme, gradientGenerator, themes){ + + var colors = ["#f00", "#0f0", "#00f", "#ff0", "#0ff", "#f0f", "./common"], + defaultFill = {type: "linear", space: "plot", x1: 0, y1: 0, x2: 0, y2: 100}; + + themes.PrimaryColors = new Theme({ + seriesThemes: gradientGenerator.generateMiniTheme(colors, defaultFill, 90, 40, 25) + }); + + return themes.PrimaryColors; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/PurpleRain.js b/js/dojo-1.7.2/dojox/charting/themes/PurpleRain.js new file mode 100644 index 0000000..8be3dc3 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/PurpleRain.js @@ -0,0 +1,17 @@ +//>>built +define("dojox/charting/themes/PurpleRain", ["../Theme", "./common"], function(Theme, themes){ + + // notes: colors generated by moving in 30 degree increments around the hue circle, + // at 90% saturation, using a B value of 75 (HSB model). + themes.PurpleRain=new Theme({ + colors: [ + "#4879bc", + "#ef446f", + "#3f58a7", + "#8254a2", + "#4956a6" + ] + }); + + return themes.PurpleRain; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/README b/js/dojo-1.7.2/dojox/charting/themes/README new file mode 100644 index 0000000..9a3725d --- /dev/null +++ b/js/dojo-1.7.2/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.7.2/dojox/charting/themes/Renkoo.js b/js/dojo-1.7.2/dojox/charting/themes/Renkoo.js new file mode 100644 index 0000000..ef883e1 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Renkoo.js @@ -0,0 +1,84 @@ +//>>built +define("dojox/charting/themes/Renkoo", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){ + + // created by Tom Trenka + + var g = Theme.generateGradient, + defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 150}; + + themes.Renkoo = new 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 = gradutils.reverse(theme.series.fill); + } + return theme; + }; + + return themes.Renkoo; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/RoyalPurples.js b/js/dojo-1.7.2/dojox/charting/themes/RoyalPurples.js new file mode 100644 index 0000000..f652e48 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/RoyalPurples.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/RoyalPurples", ["../Theme", "./common"], function(Theme, themes){ + + themes.RoyalPurples=new Theme({ + colors: [ + "#473980", + "#685aa7", + "#7970b3", + "#231c3f", + "#7267ae" + ] + }); + + return themes.RoyalPurples; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/SageToLime.js b/js/dojo-1.7.2/dojox/charting/themes/SageToLime.js new file mode 100644 index 0000000..f295b81 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/SageToLime.js @@ -0,0 +1,20 @@ +//>>built +define("dojox/charting/themes/SageToLime", ["../Theme", "./common"], function(Theme, themes){ + + themes.SageToLime=new Theme({ + colors: [ + "#abdbcb", + "#435a51", + "#70998b", + "#5f8074", + "#80ccbb", + "#539e8b", + "#78a596", + "#335f54", + "#8dd1c2", + "#68c5ad" + ] + }); + + return themes.SageToLime; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Shrooms.js b/js/dojo-1.7.2/dojox/charting/themes/Shrooms.js new file mode 100644 index 0000000..35305cf --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Shrooms.js @@ -0,0 +1,23 @@ +//>>built +define("dojox/charting/themes/Shrooms", ["../Theme", "./common"], function(Theme, themes){ + // notes: colors generated by moving in 30 degree increments around the hue circle, + // at 90% saturation, using a B value of 75 (HSB model). + themes.Shrooms = new 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 + ] + }); + + return themes.Shrooms; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/ThreeD.js b/js/dojo-1.7.2/dojox/charting/themes/ThreeD.js new file mode 100644 index 0000000..8085eb5 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/ThreeD.js @@ -0,0 +1,44 @@ +//>>built +define("dojox/charting/themes/ThreeD", ["dojox","dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/array", "../Theme", "./gradientGenerator", "./PrimaryColors", "dojo/colors" /* for sanitize */, "./common"], + function(dojox, kernel, lang, ArrayUtil, Theme, gradientGenerator, PrimaryColors, themes){ + + var colors = ["#f00", "#0f0", "#00f", "#ff0", "#0ff", "#f0f", "./common"], // 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 = ArrayUtil.map(colors, function(c){ + var fill = lang.delegate(defaultFill), + colors = fill.colors = 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 = 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); + }; + + return themes.ThreeD; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Tom.js b/js/dojo-1.7.2/dojox/charting/themes/Tom.js new file mode 100644 index 0000000..ccb27ab --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Tom.js @@ -0,0 +1,86 @@ +//>>built +define("dojox/charting/themes/Tom", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){ + + // created by Tom Trenka + + var g = Theme.generateGradient, + defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100}; + + themes.Tom = new 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 = gradutils.reverse(theme.series.fill); + } + return theme; + }; + + return themes.Tom; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Tufte.js b/js/dojo-1.7.2/dojox/charting/themes/Tufte.js new file mode 100644 index 0000000..2b1cf44 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Tufte.js @@ -0,0 +1,55 @@ +//>>built +define("dojox/charting/themes/Tufte", ["../Theme", "dojo/_base/Color", "./common"], function(Theme, Color, themes){ + /* + A charting theme based on the principles championed by + Edward Tufte. By Alex Russell, Dojo Project Lead. + */ + themes.Tufte = new 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 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:[ + Color.fromHex("#8a8c8f"), + Color.fromHex("#4b4b4b"), + Color.fromHex("#3b444b"), + Color.fromHex("#2e2d30"), + Color.fromHex("#000000") + ] + }); + return themes.Tufte; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/WatersEdge.js b/js/dojo-1.7.2/dojox/charting/themes/WatersEdge.js new file mode 100644 index 0000000..8714a14 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/WatersEdge.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/WatersEdge", ["../Theme", "./common"], function(Theme, themes){ + + themes.WatersEdge = new Theme({ + colors: [ + "#437cc0", + "#6256a5", + "#4552a3", + "#43c4f2", + "#4b66b0" + ] + }); + + return themes.WatersEdge; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/Wetland.js b/js/dojo-1.7.2/dojox/charting/themes/Wetland.js new file mode 100644 index 0000000..8fc0529 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/Wetland.js @@ -0,0 +1,15 @@ +//>>built +define("dojox/charting/themes/Wetland", ["../Theme", "./common"], function(Theme, themes){ + + themes.Wetland = new Theme({ + colors: [ + "#bfbc64", + "#737130", + "#73373b", + "#7dafca", + "#8d3c42" + ] + }); + + return themes.Wetland; +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/common.js b/js/dojo-1.7.2/dojox/charting/themes/common.js new file mode 100644 index 0000000..7e2fd65 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/common.js @@ -0,0 +1,4 @@ +//>>built +define("dojox/charting/themes/common", ["dojo/_base/lang"], function(lang){ + return lang.getObject("dojox.charting.themes", true); +}); diff --git a/js/dojo-1.7.2/dojox/charting/themes/gradientGenerator.js b/js/dojo-1.7.2/dojox/charting/themes/gradientGenerator.js new file mode 100644 index 0000000..e649a31 --- /dev/null +++ b/js/dojo-1.7.2/dojox/charting/themes/gradientGenerator.js @@ -0,0 +1,82 @@ +//>>built +define("dojox/charting/themes/gradientGenerator", ["dojo/_base/lang", "dojo/_base/array", "dojo/_base/Color", "../Theme", "dojox/color/_base", "./common"], + function(lang, arr, Color, Theme, dxcolor, themes){ + + var gg = lang.getObject("gradientGenerator", true, themes); + + 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). + return arr.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). + arr.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). + return arr.map(colors, function(c){ // Array + c = new dxcolor.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 Color(color); + return arr.map(intensityMap, function(stop){ // Array + var s = stop.i / 255; + return { + offset: stop.o, + color: new Color([color.r * s, color.g * s, color.b * s, color.a]) + }; + }); + } + + return gg; +}); |
