Fix dashboard frequency selector
On the dashboard we pre-select a 1 month period for the charts so the "yearly" frequency will not work as expected. The main goal in the dashboard's chart is to remain as simple as possible so I added the possibility to force the frequency and thus hide the selector.
The first commit just fixups some nits (and an issue with the state
usage even if if it does not break the behaviour).