debug chart values placing call inside AJAX command