Clean up get_chart_data

Removed testing code from get_chart_data.php