updated with legend and date range tweaks