novus / nvd3

A reusable charting library written in d3.js
http://nvd3.org/
Other
7.23k stars 2.14k forks source link

Sunburst chart not zooming to correct section on Google Chrome #1353

Open bradleymarques opened 8 years ago

bradleymarques commented 8 years ago

In Google Chrome, occasionally, when clicking on some parts of a Sunburst chart, it zooms to the incorrect portion of the chart. I am unsure what conditions contribute to "occasionally", though.

Link to JSFiddle with example of this: https://jsfiddle.net/bradmarxmoosepi/2yk3qjhn/ Link to StackOverflow question: http://stackoverflow.com/questions/33648644/nvd3-sunburst-zooming-into-wrong-section

liquidpele commented 8 years ago

Hmm... I'm unable to reproduce this using chrome on both mac and win7. If you wanted, you could try to debug a bit since you're able to reproduce...

The sunburst chart was basically taken from this blocks example: http://bl.ocks.org/mbostock/4348373

Then I added the tooltip on top of that, so I suspect maybe the tooltip is not being updated with the correct data for some reason... especially if the chart itself is showing the correct color (since pug is green and sparrow is purple).