bug fix for d3.chart not display