In D3 I have a transition like this
this.xAxis
.transition()
.ease(d3.easeBackInOut)
.duration(1000)
.call(this.xTicks)
.attr('transform', `translate(0, ${this.height})`);
I am using the same transition in a few places.
Is there a way to make this into a function or something I can update it in one place like
transition(){
.transition()
.ease(d3.easeBackInOut)
.duration(1000)
}
this.xAxis
transition()
.call(this.xTicks)
.attr('transform', `translate(0, ${this.height})`);