benkeen / d3pie

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

Why sometimes the d3pie does not draw sectors? #171

Open timamus opened 5 years ago

timamus commented 5 years ago

Why sometimes the d3pie does not draw sectors? If the mouse cursor is in place of the diagram before the d3pie is loaded, the sectors where the cursor was located are not visible. Then, If I spend the mouse over the sectors that are not drawn, they are restored. And this bug happenes when "gradient" is "enabled": true, in the "misc" section. изображение

The code located below helps to bypass the bug with full functionality. Where 1000 should be equal to the amount of chart animation load time.

}); setTimeout(function(){ pie.updateProp("effects.load.effect", "none"); }, 1000);