plot total according to date