Bug 187639 Tooltips for invisible series in svg chart still there
I have a chart with tooltips (onMouseOver) on the data points of a series When I toggle the visibility for the series, the series vanishes But when I hover over the invisible data point, the tooltip appears. Steps to reproduce: -Create a report with SVG chart with a value series. -For interactivity set: -"Show tooltip" in the "OnMouseOver" event of the series -"Toggle visibility" in "OnClick" of the legend -Run the report, keep position of a data point of a series in mind and -toggle that series to invisible. -Hover mouse over remembered data point position --> the tooltip appears
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/EventHandlers.java
.append( "		      classType: \"tooltip\"\n" ) 
			.append( "		 } );\n" ) 
			.append( "		   this.rectangle.addToParent(this.group.element);\n" ) 
			.append( "		   var textObj = new BuildHelper(\"text\",\n" ) 
			.append( "		     {id:\"tooltip\",\n" ) 
			.append( "		      x: this.xPadding,\n" ) 
			.append( "		      y: (this.yPadding),\n" ) 
			.append( "		      transform:\"scale(\"+(1/scl)+\",\"+(1/scl)+\")\",\n" ) 
			.append( "		      classType: \"tooltip text\"\n" ) 
			.append( "		 });\n" ) 
			.append( "		   textObj.addToParent(this.group.element);\n" ) 
			.append( "	           TM.setContent(textObj, text);\n" ) 
			.append( "	           var outline = textObj.element.getBBox();\n" ) 
			.append( "                   var tooltipHeight = outline.height+6;\n" ) 
			.append( "                   var tooltipWidth = outline.width+2*this.xPadding;\n" ) 
			.append( "                   var root=evt.target.ownerDocument.documentElement;\n" ) 
			.append( "                   var rootWidth =root.getAttribute('width');\n" ) 
			.append( "                   var rootHeight = root.getAttribute('height');\n" ) 
			.append( "                   if (((y+tooltipHeight)> rootHeight) || ((x+tooltipWidth)> rootWidth)){\n" ) 
			.append( "                      var transformX = x + this.xPadding;\n" ) 
			.append( "                      var transformY = y+ this.yPadding;\n" ) 
			.append( "                      if ((y+tooltipHeight)> rootHeight)\n" ) 
			.append( "                        transformY  = (rootHeight-tooltipHeight)-this.yPadding;\n" ) 
			.append( "                   if ((x+tooltipWidth)> rootWidth)\n" ) 
			.append( "                        transformX  = (rootWidth-tooltipWidth)-this.xPadding;\n" ) 
			.append( "                      this.group.element.setAttributeNS(null, \"transform\", \"translate(\"+(transformX*xScale)+\", \"+(transformY*yScale)+\")\");\n" ) 
			.append( "                   }\n" ) 
			.append( "                   this.rectangle.element.setAttributeNS(null, \"width\", tooltipWidth);\n" ) 
			.append( "                   this.rectangle.element.setAttributeNS(null, \"height\", tooltipHeight);\n" ) 
			.append( "		  }\n" )