fixed d3 chart call