tal + Number(RegionResultNodeList.item(regionIndex).firstChild.nodeValue);

          // Build a pie chart.
          var startAngle = 0;
          for (regionIndex = 0; regionIndex &lt; regionCount; regionIndex++) {
          regionName = RegionNameNodeList.item(regionIndex).firstChild.nodeValue;
          regionResult = Number(RegionResultNodeList.item(regionIndex).firstChild.nodeValue);

          // Build the pie slice.
          textElement = doc.createElementNS(svg_ns, "text");
          textNode = do