a:25:{s:9:"#provides";s:29:"dojox.charting.plot2d.Default";s:9:"#resource";s:26:"charting/plot2d/Default.js";s:9:"#requires";a:5:{i:0;a:2:{i:0;s:6:"common";i:1;s:28:"dojox.charting.plot2d.common";}i:1;a:2:{i:0;s:6:"common";i:1;s:26:"dojox.charting.plot2d.Base";}i:2;a:2:{i:0;s:6:"common";i:1;s:16:"dojox.lang.utils";}i:3;a:2:{i:0;s:6:"common";i:1;s:21:"dojox.lang.functional";}i:4;a:2:{i:0;s:6:"common";i:1;s:30:"dojox.lang.functional.reversed";}}s:29:"dojox.charting.plot2d.Default";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:43:"dojox.charting.plot2d.Default.defaultParams";a:3:{s:9:"prototype";s:29:"dojox.charting.plot2d.Default";s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:44:"dojox.charting.plot2d.Default.optionalParams";a:3:{s:9:"prototype";s:29:"dojox.charting.plot2d.Default";s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:43:"dojox.charting.plot2d.Default.calculateAxes";a:5:{s:9:"prototype";s:29:"dojox.charting.plot2d.Default";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:36:"dojox.charting.plot2d.Default.render";a:5:{s:9:"prototype";s:29:"dojox.charting.plot2d.Default";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:5041:" 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, marker, 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; } var s = run.group, lpoly, ht = this._hScaler.scaler.getTransformerFromModel(this._hScaler), vt = this._vScaler.scaler.getTransformerFromModel(this._vScaler); if(typeof run.data[0] == "number"){ lpoly = dojo.map(run.data, function(v, i){ return { x: ht(i + 1) + offsets.l, y: dim.height - offsets.b - vt(v) }; }, this); }else{ lpoly = dojo.map(run.data, function(v, i){ return { x: ht(v.x) + offsets.l, y: dim.height - offsets.b - vt(v.y) }; }, this); } if(!run.fill || !run.stroke){ // need autogenerated color color = run.dyn.color = new dojo.Color(t.next("color")); } var lpath = this.opt.tension ? dc.curve(lpoly, this.opt.tension) : ""; if(this.opt.areas){ var fill = run.fill ? run.fill : dc.augmentFill(t.series.fill, color); var apoly = dojo.clone(lpoly); if(this.opt.tension){ var apath = "L" + apoly[apoly.length-1].x + "," + (dim.height - offsets.b) + " L" + apoly[0].x + "," + (dim.height - offsets.b) + " L" + apoly[0].x + "," + apoly[0].y; run.dyn.fill = s.createPath(lpath + " " + apath).setFill(fill).getFill(); } else { apoly.push({x: lpoly[lpoly.length - 1].x, y: dim.height - offsets.b}); apoly.push({x: lpoly[0].x, y: dim.height - offsets.b}); apoly.push(lpoly[0]); run.dyn.fill = s.createPolyline(apoly).setFill(fill).getFill(); } } if(this.opt.lines || this.opt.markers){ // need a stroke stroke = run.stroke ? dc.makeStroke(run.stroke) : dc.augmentStroke(t.series.stroke, color); if(run.outline || t.series.outline){ outline = dc.makeStroke(run.outline ? run.outline : t.series.outline); outline.width = 2 * outline.width + stroke.width; } } if(this.opt.markers){ // need a marker marker = run.dyn.marker = run.marker ? run.marker : t.next("marker"); } var frontMarkers = null, outlineMarkers = null, shadowMarkers = null; if(this.opt.shadows && stroke){ var sh = this.opt.shadows, shadowColor = new dojo.Color([0, 0, 0, 0.3]), spoly = dojo.map(lpoly, function(c){ return {x: c.x + sh.dx, y: c.y + sh.dy}; }), shadowStroke = dojo.clone(outline ? outline : stroke); shadowStroke.color = shadowColor; shadowStroke.width += sh.dw ? sh.dw : 0; if(this.opt.lines){ if(this.opt.tension){ run.dyn.shadow = s.createPath(dc.curve(spoly, this.opt.tension)).setStroke(shadowStroke).getStroke(); } else { run.dyn.shadow = s.createPolyline(spoly).setStroke(shadowStroke).getStroke(); } } if(this.opt.markers){ shadowMarkers = dojo.map(spoly, function(c){ return s.createPath("M" + c.x + " " + c.y + " " + marker). setStroke(shadowStroke).setFill(shadowColor); }, this); } } if(this.opt.lines){ if(outline){ if(this.opt.tension){ run.dyn.outline = s.createPath(lpath).setStroke(outline).getStroke(); } else { run.dyn.outline = s.createPolyline(lpoly).setStroke(outline).getStroke(); } } if(this.opt.tension){ run.dyn.stroke = s.createPath(lpath).setStroke(stroke).getStroke(); } else { run.dyn.stroke = s.createPolyline(lpoly).setStroke(stroke).getStroke(); } } if(this.opt.markers){ frontMarkers = new Array(lpoly.length); outlineMarkers = new Array(lpoly.length); dojo.forEach(lpoly, function(c, i){ var path = "M" + c.x + " " + c.y + " " + marker; if(outline){ outlineMarkers[i] = s.createPath(path).setStroke(outline); } frontMarkers[i] = s.createPath(path).setStroke(stroke).setFill(stroke.color); }, this); if(events){ dojo.forEach(frontMarkers, function(s, i){ var o = { element: "marker", index: i, run: run, plot: this, hAxis: this.hAxis || null, vAxis: this.vAxis || null, shape: s, outline: outlineMarkers[i] || null, shadow: shadowMarkers && shadowMarkers[i] || null, cx: lpoly[i].x, cy: lpoly[i].y }; if(typeof run.data[0] == "number"){ o.x = i + 1; o.y = run.data[i]; }else{ o.x = run.data[i].x; o.y = run.data[i].y; } this._connectEvents(s, o); }, this); } } run.dirty = false; } this.dirty = false; return this;";s:7:"summary";s:0:"";}s:49:"dojox.charting.plot2d.Default.defaultParams.hAxis";a:1:{s:7:"summary";s:0:"";}s:49:"dojox.charting.plot2d.Default.defaultParams.vAxis";a:1:{s:7:"summary";s:0:"";}s:49:"dojox.charting.plot2d.Default.defaultParams.lines";a:1:{s:7:"summary";s:0:"";}s:49:"dojox.charting.plot2d.Default.defaultParams.areas";a:1:{s:7:"summary";s:0:"";}s:51:"dojox.charting.plot2d.Default.defaultParams.markers";a:1:{s:7:"summary";s:0:"";}s:51:"dojox.charting.plot2d.Default.defaultParams.shadows";a:1:{s:7:"summary";s:0:"";}s:51:"dojox.charting.plot2d.Default.defaultParams.tension";a:1:{s:7:"summary";s:0:"";}s:35:"dojox.charting.plot2d.Default.dirty";a:2:{s:8:"instance";s:29:"dojox.charting.plot2d.Default";s:7:"summary";s:0:"";}s:33:"dojox.charting.plot2d.Default.opt";a:2:{s:8:"instance";s:29:"dojox.charting.plot2d.Default";s:7:"summary";s:0:"";}s:36:"dojox.charting.plot2d.Default.series";a:2:{s:8:"instance";s:29:"dojox.charting.plot2d.Default";s:7:"summary";s:0:"";}s:35:"dojox.charting.plot2d.Default.hAxis";a:2:{s:8:"instance";s:29:"dojox.charting.plot2d.Default";s:7:"summary";s:0:"";}s:35:"dojox.charting.plot2d.Default.vAxis";a:2:{s:8:"instance";s:29:"dojox.charting.plot2d.Default";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:"";}}