minor tweek for empty chart and date wise js error handling