d3act icon indicating copy to clipboard operation
d3act copied to clipboard

easing enhancement

Open JoeGrasso opened this issue 9 years ago • 1 comments

Any chance of incorporating easing? It is a simple process ..

.delay(function(d, i) { return i *10 } .ease('elastic')

But I am still learning your code so not quite sure where it would belong as a global. Somewhere in baseChart I am sure.

JoeGrasso avatar Oct 09 '15 15:10 JoeGrasso

The setting itself would go in the BaseChart as part of the chartConfig Object. Something like easing and easingDelay. Both could be null by default to denote that no easing is applied.

Then each sub-class would need to make use of those configs in the same way that we do so for transitionDuration:

.transition().duration(this.transitionDuration)

AnSavvides avatar Oct 09 '15 15:10 AnSavvides