Use query period for graph callout formatting

Rather than using the config to set the formatting period use the period
from the query. It then isn't coupled to the same config as the axis are
using.

- Remove getTick as it is no longer used anwhere
- Update tests based on the new d3 date logic