You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those with the same issue, please note the following can be used for now as a work-around:
// define a helper function for conciseness
// (could be placed inline instead, but cannot be an arrow function)
function children() {
return this.children;
}
var elem = d3.select('.my-elem');
if(condition) {
elem = elem.transition()
.duration(500)
.ease(d3.easeExpOut);
}
elem.attr('opacity', 1)
.selectAll(children).filter('rect') // use filter if selecting specific children
.attr('fill', 'green')
.attr(...)
...
Similar to the recently added features in d3-selection, I noticed transitions lack the functions,
I found it's often convenient to be able to rely on the tight coherencies between the selection and transition modules; e.g.:
But, in this case it doesn't comply. Hope to see these get added soon!
The text was updated successfully, but these errors were encountered: