AnSavvides / d3act

d3 with React
MIT License
298 stars 26 forks source link

easing enhancement #16

Open JoeGrasso opened 8 years ago

JoeGrasso commented 8 years ago

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.

AnSavvides commented 8 years ago

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)