formatted graph on DeviceDetails.php page to look good