added time option for line graph (allows non-time based data)