Polyfill for d3 selection size