fix for d3 require compatibility in component