benkeen / d3pie

A configurable pie chart lib and generator built on d3.js
MIT License
371 stars 203 forks source link

Tooltip hover on load fix #131

Closed isius closed 4 years ago

isius commented 7 years ago

Quickly hovering over the chart during chart creation (on load) results in console errors due to the data attribute "index" having float instead of integer values, resulting in an invalid selector. I suspect this is due one of the previous function calls asynchronously slowing the call to set the index data attribute. Moving it before the other function calls fixes the issue.