2013-04-15 240 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

你必須設置填充屬性後,一個分號;。刪除它必須解決您的問題。