Fix graphs on domain statistics reports.
Skip some code when --no-year-stat is enabled.