Fix the d3 chart