diff --git a/src/components/Dashboard/common/HistoryDisplay.jsx b/src/components/Dashboard/common/HistoryDisplay.jsx
index 7e19b21..a46f885 100644
--- a/src/components/Dashboard/common/HistoryDisplay.jsx
+++ b/src/components/Dashboard/common/HistoryDisplay.jsx
@@ -1,13 +1,5 @@
import { useEffect, useState, useContext, useMemo } from 'react'
-import {
- Card,
- Segmented,
- Flex,
- Popover,
- DatePicker,
- Button,
- Space
-} from 'antd'
+import { Card, Segmented, Flex, Popover, DatePicker, Button, Space } from 'antd'
import {
ResponsiveContainer,
BarChart,
@@ -25,9 +17,9 @@ import { ApiServerContext } from '../context/ApiServerContext'
import { AuthContext } from '../context/AuthContext'
import dayjs from 'dayjs'
import { useThemeContext } from '../context/ThemeContext'
-import LoadingPlaceholder from './LoadingPlaceholder'
import MissingPlaceholder from './MissingPlaceholder'
import CheckIcon from '../../Icons/CheckIcon'
+import { LoadingOutlined } from '@ant-design/icons'
const HistoryDisplay = ({
objectType,
@@ -291,15 +283,17 @@ const HistoryDisplay = ({
})
const chartRows = Array.from(
- chartData.reduce((acc, item) => {
- const existing = acc.get(item.date) || {
- date: item.date,
- dateFormatted: item.dateFormatted
- }
- existing[item.category] = item.value
- acc.set(item.date, existing)
- return acc
- }, new Map()).values()
+ chartData
+ .reduce((acc, item) => {
+ const existing = acc.get(item.date) || {
+ date: item.date,
+ dateFormatted: item.dateFormatted
+ }
+ existing[item.category] = item.value
+ acc.set(item.date, existing)
+ return acc
+ }, new Map())
+ .values()
).sort((a, b) => new Date(a.date) - new Date(b.date))
const customTimeRangeContent = (
@@ -334,89 +328,99 @@ const HistoryDisplay = ({
style={{ width: '100%' }}
styles={{ body: { padding: '12px', ...styles } }}
>
- {!startDate && !endDate && (
-