javascript - D3 quick chained transition inconsistency -


when chain transitions small duration, skips first one. not consistent. 10ms doesn't work, 5ms does. used setinterval random duration in demo trigger http://jsfiddle.net/83rec/. code in question:

    .attr('fill', 'red')     .style('opacity', 0)     .transition()     .duration(duration)     .style('opacity', 1)     .transition()     .attr('fill', 'green') 

when duration starts in <10ms range when starts failing. bug in d3 or logic failure on part?

browser timing loops typically 16.667 ms. time less subsumed next event.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -