Refactored chart code and made chart based on time in sec, not count of items. Also formatted icons