Fixed chart's data loading issue.