fix missing ajax request for line chart and wonky reference chain (still WIP)