chart not showing live, so tweaked to get it working again