2013-04-15 355 views
0

我正在使用d3与raphael来支持较低版本的Internet Explorer。我几乎用它做,但我需要对我的UI鼠标事件,但因为我使用支持鼠标悬停,鼠标悬停,点击r3d4?

var d3_raphael = d3.raphael(paper); 

它不支持任何事件。我什么都试过,因为我幼稚..我的代码是

var node = chart.selectAll("g.node") 
    .data(bubble.nodes(stuff).filter(function(d) { 
      return !d.children; 
     })) 
    .enter().append("circle") 
      .attr("class", "node") 
    .attr("cx",function(d) { return d.x; }) 
    .attr("cy",function(d) { return d.y; }) 
    .attr("r", function(d) { return d.r; }) 
    .attr("fill", function(d) {return fill(d.packageName); }) 
      .on("mouseover",function(){alert('heeloo');}) 

回答

0

你必须设置填充属性后,一个分号;。删除它必须解决您的问题。