implemented basic functionality of plotting by date

ugly but works for now