diff --git a/packages/grafana-ui/src/components/uPlot/config/UPlotAxisBuilder.ts b/packages/grafana-ui/src/components/uPlot/config/UPlotAxisBuilder.ts index 152fbdf4e78..ebd8dc911d6 100644 --- a/packages/grafana-ui/src/components/uPlot/config/UPlotAxisBuilder.ts +++ b/packages/grafana-ui/src/components/uPlot/config/UPlotAxisBuilder.ts @@ -170,7 +170,7 @@ function formatTime(self: uPlot, splits: number[], axisIdx: number, foundSpace: const yearRoundedToDay = Math.round(timeUnitSize.year / timeUnitSize.day) * timeUnitSize.day; const incrementRoundedToDay = Math.round(foundIncr / timeUnitSize.day) * timeUnitSize.day; - let format = systemDateFormats.interval.minute; + let format = systemDateFormats.interval.year; if (foundIncr < timeUnitSize.second) { format = systemDateFormats.interval.second.replace('ss', 'ss.SS');