Support dates with bar charts

Added a test where a bar chart uses dates.
(Motivated by user feedback :8ball:)

/cc @xsaintmleux @pedrodz