Skip to content

Commit

Permalink
feat: make the x axis of alert history in 24 hour format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadshaheer committed Jan 27, 2025
1 parent e675ddc commit a5892ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/container/AlertHistory/Timeline/Graph/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import useUrlQuery from 'hooks/useUrlQuery';
import history from 'lib/history';
import heatmapPlugin from 'lib/uPlotLib/plugins/heatmapPlugin';
import timelinePlugin from 'lib/uPlotLib/plugins/timelinePlugin';
import { uPlotXAxisValuesFormat } from 'lib/uPlotLib/utils/constants';
import { useTimezone } from 'providers/Timezone';
import { useMemo, useRef } from 'react';
import { useDispatch } from 'react-redux';
Expand Down Expand Up @@ -60,6 +61,7 @@ function HorizontalTimelineGraph({
{
gap: 10,
stroke: isDarkMode ? Color.BG_VANILLA_400 : Color.BG_INK_400,
values: uPlotXAxisValuesFormat,
},
{ show: false },
],
Expand Down

0 comments on commit a5892ea

Please sign in to comment.