/* 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.svg.Axis"); dojo.require("dojo.lang.common"); if(dojo.render.svg.capable){ dojo.extend(dojo.charting.Axis, { renderLines: function( /* dojo.charting.PlotArea */plotArea, /* dojo.charting.Plot */plot, /* string */plane ){ // summary // Renders any reference lines for this axis. if(this.nodes.lines){ while(this.nodes.lines.childNodes.length > 0){ this.nodes.lines.removeChild(this.nodes.lines.childNodes[0]); } if(this.nodes.lines.parentNode){ this.nodes.lines.parentNode.removeChild(this.nodes.lines); this.nodes.lines = null; } } var area = plotArea.getArea(); var g = this.nodes.lines = document.createElementNS(dojo.svg.xmlns.svg, "g"); g.setAttribute("id", this.getId()+"-lines"); for(var i=0; i 0){ this.nodes.ticks.removeChild(this.nodes.ticks.childNodes[0]); } if(this.nodes.ticks.parentNode){ this.nodes.ticks.parentNode.removeChild(this.nodes.ticks); this.nodes.ticks = null; } } var g = this.nodes.ticks = document.createElementNS(dojo.svg.xmlns.svg, "g"); g.setAttribute("id", this.getId()+"-ticks"); for(var i=0; i 0){ this.nodes.labels.removeChild(this.nodes.labels.childNodes[0]); } if(this.nodes.labels.parentNode){ this.nodes.labels.parentNode.removeChild(this.nodes.labels); this.nodes.labels = null; } } var g = this.nodes.labels = document.createElementNS(dojo.svg.xmlns.svg, "g"); g.setAttribute("id", this.getId()+"-labels"); for(var i=0; i