2017-12-29 17 views
1

d3.jsを使用してバブルチャートを描画すると、奇妙な名前のないエラーメッセージが表示されます。グラフは機能していますが、エラー後のコードは実行されません。d3.jsを使用した無名エラー

Error:   d3.v4.js:3554:42 
easeConstant https://d3js.org/d3.v4.js:3554:42 
transition_ease https://d3js.org/d3.v4.js:3564:19 
drawbubble  http://testinvest.pl4y6r0und.net/JSInclude/d3.bubblegraph.js:143:5 
<anonym>  http://testinvest.pl4y6r0und.net/KeywordCorrelation.php:84:21 
fire   https://code.jquery.com/jquery-1.12.4.js:3232:11 
fireWith  https://code.jquery.com/jquery-1.12.4.js:3362:7 
done   https://code.jquery.com/jquery-1.12.4.js:9840:5 
callback  https://code.jquery.com/jquery-1.12.4.js:10311:8 

これはどのようにdrawbubbleです:.ease("bounce")のご利用がleftover from d3 v3あるよう

svg.selectAll("circle") 
     .data(data) 
     .enter() 
     .insert("circle") 
     .attr("cx", width/2) 
     .attr("cy", height/2) 
     .attr("opacity", function (d) { 
      return opacity(d.size); 
     }) 
     .attr("r", function (d) { 
      return scale(d.size); 
     }) 
     .style("fill", function (d) { 
      return color(d.c); 
     }) 
     .on('mouseover', function (d, i) { 
      fade(d.c, .1); 
     }) 
     .on('mouseout', function (d, i) { 
      fadeOut(); 
     }) 
     .transition() 
     .delay(function (d, i) { 
      return x(d.x) - y(d.y); 
     }) 
     .duration(500) 
     .attr("cx", function (d) { 
      return x(d.x); 
     }) 
     .attr("cy", function (d) { 
      return y(d.y); 
     }) 
     .ease("bounce"); 

答えて

関連する問題