add loading to chart