fixes bar chart for weekly and monthly