updated to allow for charts with no entries that have dates