From 1c5685d68f1b73270fb814fe04cbb490eb90ba5f Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 14 Nov 2008 15:39:19 +0000 Subject: Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f --- .../js/dojox/charting/plot2d/ClusteredColumns.js | 63 ---------------------- 1 file changed, 63 deletions(-) delete mode 100644 includes/js/dojox/charting/plot2d/ClusteredColumns.js (limited to 'includes/js/dojox/charting/plot2d/ClusteredColumns.js') diff --git a/includes/js/dojox/charting/plot2d/ClusteredColumns.js b/includes/js/dojox/charting/plot2d/ClusteredColumns.js deleted file mode 100644 index 9a4170a..0000000 --- a/includes/js/dojox/charting/plot2d/ClusteredColumns.js +++ /dev/null @@ -1,63 +0,0 @@ -if(!dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"] = true; -dojo.provide("dojox.charting.plot2d.ClusteredColumns"); - -dojo.require("dojox.charting.plot2d.common"); -dojo.require("dojox.charting.plot2d.Columns"); - -dojo.require("dojox.lang.functional"); -dojo.require("dojox.lang.functional.reversed"); - -(function(){ - var df = dojox.lang.functional, dc = dojox.charting.plot2d.common, - purgeGroup = df.lambda("item.purgeGroup()"); - - dojo.declare("dojox.charting.plot2d.ClusteredColumns", dojox.charting.plot2d.Columns, { - render: function(dim, offsets){ - if(this.dirty){ - dojo.forEach(this.series, purgeGroup); - this.cleanGroup(); - var s = this.group; - df.forEachRev(this.series, function(item){ item.cleanGroup(s); }); - } - var t = this.chart.theme, color, stroke, fill, f, - gap = this.opt.gap < this._hScaler.scale / 3 ? this.opt.gap : 0, - thickness = (this._hScaler.scale - 2 * gap) / this.series.length; - for(var i = 0; i < this.series.length; ++i){ - var run = this.series[i]; - if(!this.dirty && !run.dirty){ continue; } - run.cleanGroup(); - var s = run.group; - if(!run.fill || !run.stroke){ - // need autogenerated color - color = run.dyn.color = new dojo.Color(t.next("color")); - } - stroke = run.stroke ? run.stroke : dc.augmentStroke(t.series.stroke, color); - fill = run.fill ? run.fill : dc.augmentFill(t.series.fill, color); - var baseline = Math.max(0, this._vScaler.bounds.lower), - xoff = offsets.l + this._hScaler.scale * (0.5 - this._hScaler.bounds.lower) + gap + thickness * i, - yoff = dim.height - offsets.b - this._vScaler.scale * (baseline - this._vScaler.bounds.lower); - for(var j = 0; j < run.data.length; ++j){ - var v = run.data[j], - width = thickness, - height = this._vScaler.scale * (v - baseline), - h = Math.abs(height); - if(width >= 1 && h >= 1){ - var shape = s.createRect({ - x: xoff + this._hScaler.scale * j, - y: yoff - (height < 0 ? 0 : height), - width: width, height: h - }).setFill(fill).setStroke(stroke); - run.dyn.fill = shape.getFill(); - run.dyn.stroke = shape.getStroke(); - } - } - run.dirty = false; - } - this.dirty = false; - return this; - } - }); -})(); - -} -- cgit v1.2.3-54-g00ecf