/* Copyright (c) 2004-2006, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.charting.Plot"); dojo.require("dojo.lang.common"); dojo.require("dojo.charting.Axis"); dojo.require("dojo.charting.Series"); dojo.charting.RenderPlotSeries = { Singly:"single", Grouped:"grouped" }; dojo.charting.Plot = function( /* dojo.charting.Axis? */xaxis, /* dojo.charting.Axis? */yaxis, /* dojo.charting.Series[]? */series ){ // summary // Creates a new instance of a Plot (X/Y Axis + n Series). var id = "dojo-charting-plot-"+dojo.charting.Plot.count++; this.getId=function(){ return id; }; this.setId=function(key){ id = key; }; this.axisX = null; this.axisY = null; this.series = []; this.dataNode = null; // for bar charts, pie charts and stacked charts, change to Grouped. this.renderType = dojo.charting.RenderPlotSeries.Singly; if(xaxis){ this.setAxis(xaxis,"x"); } if(yaxis){ this.setAxis(yaxis,"y"); } if(series){ for(var i=0; i 0){ node.removeChild(node.childNodes[0]); } this.dataNode=null; } });