Chart displayed and ajax start working