a:20:{s:9:"#provides";s:28:"dojox.charting.plot2d.Bubble";s:9:"#resource";s:25:"charting/plot2d/Bubble.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:26:"dojox.charting.plot2d.Base";}i:1;a:2:{i:0;s:6:"common";i:1;s:21:"dojox.lang.functional";}}s:28:"dojox.charting.plot2d.Bubble";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:26:"dojox.charting.plot2d.Base";}s:4:"call";a:1:{i:0;s:26:"dojox.charting.plot2d.Base";}}s:10:"parameters";a:2:{s:5:"chart";a:1:{s:4:"type";s:0:"";}s:6:"kwArgs";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:172:" this.opt = dojo.clone(this.defaultParams); du.updateWithObject(this.opt, kwArgs); this.series = []; this.hAxis = this.opt.hAxis; this.vAxis = this.opt.vAxis;";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:42:"dojox.charting.plot2d.Bubble.defaultParams";a:3:{s:9:"prototype";s:28:"dojox.charting.plot2d.Bubble";s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:43:"dojox.charting.plot2d.Bubble.optionalParams";a:3:{s:9:"prototype";s:28:"dojox.charting.plot2d.Bubble";s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:42:"dojox.charting.plot2d.Bubble.calculateAxes";a:5:{s:9:"prototype";s:28:"dojox.charting.plot2d.Bubble";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"dim";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:71:" this._calc(dim, dc.collectSimpleStats(this.series)); return this;";s:7:"summary";s:0:"";}s:35:"dojox.charting.plot2d.Bubble.render";a:5:{s:9:"prototype";s:28:"dojox.charting.plot2d.Bubble";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"dim";a:1:{s:4:"type";s:0:"";}s:7:"offsets";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:3468:" this.dirty = this.isDirty(); 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, stroke, outline, color, shadowStroke, shadowColor, ht = this._hScaler.scaler.getTransformerFromModel(this._hScaler), vt = this._vScaler.scaler.getTransformerFromModel(this._vScaler), events = this.events(); this.resetEvents(); for(var i = this.series.length - 1; i >= 0; --i){ var run = this.series[i]; if(!this.dirty && !run.dirty){ continue; } run.cleanGroup(); if(!run.data.length){ run.dirty = false; continue; } if(typeof run.data[0] == "number"){ console.warn("dojox.charting.plot2d.Bubble: the data in the following series cannot be rendered as a bubble chart; ", run); continue; } var s = run.group, points = dojo.map(run.data, function(v, i){ return { x: ht(v.x) + offsets.l, y: dim.height - offsets.b - vt(v.y), radius: this._vScaler.bounds.scale * (v.size / 2) }; }, this); if(run.fill){ color = run.fill; }else if(run.stroke){ color = run.stroke; }else{ color = run.dyn.color = new dojo.Color(t.next("color")); } run.dyn.fill = color; stroke = run.dyn.stroke = run.stroke ? dc.makeStroke(run.stroke) : dc.augmentStroke(t.series.stroke, color); var frontCircles = null, outlineCircles = null, shadowCircles = null; // make shadows if needed if(this.opt.shadows && stroke){ var sh = this.opt.shadows, shadowColor = new dojo.Color([0, 0, 0, 0.2]), shadowStroke = dojo.clone(outline ? outline : stroke); shadowStroke.color = shadowColor; shadowStroke.width += sh.dw ? sh.dw : 0; run.dyn.shadow = shadowStroke; var shadowMarkers = dojo.map(points, function(item){ var sh = this.opt.shadows; return s.createCircle({ cx: item.x + sh.dx, cy: item.y + sh.dy, r: item.radius }).setStroke(shadowStroke).setFill(shadowColor); }, this); } // make outlines if needed if(run.outline || t.series.outline){ outline = dc.makeStroke(run.outline ? run.outline : t.series.outline); outline.width = 2 * outline.width + stroke.width; run.dyn.outline = outline; outlineCircles = dojo.map(points, function(item){ s.createCircle({ cx: item.x, cy: item.y, r: item.radius }).setStroke(outline); }, this); } // run through the data and add the circles. frontCircles = dojo.map(points, function(item){ return s.createCircle({ cx: item.x, cy: item.y, r: item.radius }).setStroke(stroke).setFill(color); }, this); if(events){ dojo.forEach(frontCircles, function(s, i){ var o = { element: "circle", index: i, run: run, plot: this, hAxis: this.hAxis || null, vAxis: this.vAxis || null, shape: s, outline: outlineCircles && outlineCircles[i] || null, shadow: shadowCircles && shadowCircles[i] || null, x: run.data[i].x, y: run.data[i].y, r: run.data[i].size / 2, cx: points[i].x, cy: points[i].y, cr: points[i].radius }; this._connectEvents(s, o); }, this); } run.dirty = false; } this.dirty = false; return this;";s:7:"summary";s:0:"";}s:48:"dojox.charting.plot2d.Bubble.defaultParams.hAxis";a:1:{s:7:"summary";s:0:"";}s:48:"dojox.charting.plot2d.Bubble.defaultParams.vAxis";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.charting.plot2d.Bubble.dirty";a:2:{s:8:"instance";s:28:"dojox.charting.plot2d.Bubble";s:7:"summary";s:0:"";}s:32:"dojox.charting.plot2d.Bubble.opt";a:2:{s:8:"instance";s:28:"dojox.charting.plot2d.Bubble";s:7:"summary";s:0:"";}s:35:"dojox.charting.plot2d.Bubble.series";a:2:{s:8:"instance";s:28:"dojox.charting.plot2d.Bubble";s:7:"summary";s:0:"";}s:34:"dojox.charting.plot2d.Bubble.hAxis";a:2:{s:8:"instance";s:28:"dojox.charting.plot2d.Bubble";s:7:"summary";s:0:"";}s:34:"dojox.charting.plot2d.Bubble.vAxis";a:2:{s:8:"instance";s:28:"dojox.charting.plot2d.Bubble";s:7:"summary";s:0:"";}s:2:"dc";a:1:{s:7:"summary";s:0:"";}s:10:"purgeGroup";a:1:{s:7:"summary";s:0:"";}s:21:"dojox.charting.plot2d";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:14:"dojox.charting";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}