parent.datatooltip.hide(); parent.showtooltip(); parent.hidetooltip(); clear(); setStyleAttributes(); renderValueRegion(); this.data2 ) { lowValue = this.data2; highValue = this.data1; } else { lowValue = this.data1; highValue = this.data2; } this.objStroke.clear(); if ( this.axis == 'x' ) { this.setAttribute('y', parent.plotarea.y); this.setAttribute('height', parent.plotarea.height); // Configures the left side of the region if( (parent.plotarea.minx <= lowValue) && (lowValue <= parent.plotarea.maxx)) { lowDeviceX = parent.haxis.getPixelDistance(lowValue); this.objStroke.renderStroke(0, 0, 0, this.height); } else { lowDeviceX = parent.haxis.getPixelDistance( (lowValue < parent.plotarea.minx? parent.plotarea.minx : parent.plotarea.maxx) ); } // Configures the right side of the region if( (parent.plotarea.minx <= highValue) && (highValue <= parent.plotarea.maxx)) { highDeviceX = parent.haxis.getPixelDistance(highValue); this.objStroke.renderStroke(highDeviceX - lowDeviceX, 0, highDeviceX - lowDeviceX, this.height); } else { highDeviceX = parent.haxis.getPixelDistance( (highValue < parent.plotarea.minx? parent.plotarea.minx : parent.plotarea.maxx) ); } this.setAttribute('x', parent.plotarea.x + lowDeviceX); this.setAttribute('width', highDeviceX - lowDeviceX + this.objStroke.strokeWidth ); if( (highDeviceX - lowDeviceX) != 0 ) this.setAttribute('visible', this.regionEnabled); else this.setAttribute('visible', false ); } else if ( this.axis == 'y' ) { this.setAttribute('x', parent.plotarea.x); this.setAttribute('width', parent.plotarea.width); // Configures the bottom side of the region if( (parent.plotarea.miny <= lowValue) && (lowValue <= parent.plotarea.maxy) ) { lowDeviceY = parent.vaxis.getPixelDistance(lowValue); objStroke.renderStroke(0, 0, this.width, 0); } else { lowDeviceY = parent.vaxis.getPixelDistance( (lowValue < parent.plotarea.miny? parent.plotarea.miny : parent.plotarea.maxy) ); } // Configures the up side of the region if( (parent.plotarea.miny <= highValue) && (highValue <= parent.plotarea.maxy)) { highDeviceY = parent.vaxis.getPixelDistance(highValue); this.objStroke.renderStroke(0, highDeviceY - lowDeviceY, this.width, highDeviceY - lowDeviceY); } else { highDeviceY = parent.vaxis.getPixelDistance( (highValue < parent.plotarea.miny? parent.plotarea.miny : parent.plotarea.maxy) ); } this.setAttribute('y', parent.plotarea.y + parent.plotarea.height - highDeviceY); this.setAttribute('height', highDeviceY - lowDeviceY + this.objStroke.strokeWidth ); if( (highDeviceY - lowDeviceY) != 0 ) this.setAttribute('visible', this.regionEnabled); else this.setAttribute('visible', false ); } this.beginPath(); this.lineTo(this.width,0); this.lineTo(this.width,this.height); this.lineTo(0,this.height); this.lineTo(0,0); this.closePath(); this.fill(); ]]> super.clear(); a region of values in a chart This component is of Beta quality and is subject to change.