Implemented basic gauge chart
This commit is contained in:
1 parent
38fddf5b9b
commit
2a1afc8610
5 files changed
+109
-63
No files matched your search
@@ -32,7 +32,7 @@ import PaginationTable from "./PaginationTable";
|
||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||
import PulseDot from "../../../Components/Animated/PulseDot";
|
||||
import { StatBox, ChartBox, IconBox } from "./styled";
|
||||
import { DownBarChart, UpBarChart } from "./Charts";
|
||||
import { DownBarChart, ResponseGaugeChart, UpBarChart } from "./Charts";
|
||||
import SkeletonLayout from "./skeleton";
|
||||
import "./index.css";
|
||||
|
||||
@@ -133,8 +133,6 @@ const DetailsPage = ({ isAdmin }) => {
|
||||
undefined: "Pending...",
|
||||
};
|
||||
|
||||
console.log(monitor);
|
||||
|
||||
return (
|
||||
<Box className="monitor-details">
|
||||
{loading ? (
|
||||
@@ -463,7 +461,7 @@ const DetailsPage = ({ isAdmin }) => {
|
||||
onBarHover={setHoveredIncidentsData}
|
||||
/>
|
||||
</ChartBox>
|
||||
<ChartBox>
|
||||
<ChartBox justifyContent="space-between">
|
||||
<Stack>
|
||||
<IconBox>
|
||||
<AverageResponseIcon />
|
||||
@@ -472,6 +470,9 @@ const DetailsPage = ({ isAdmin }) => {
|
||||
Average Response Time
|
||||
</Typography>
|
||||
</Stack>
|
||||
<ResponseGaugeChart
|
||||
data={[{ response: monitor?.periodAvgResponseTime }]}
|
||||
/>
|
||||
</ChartBox>
|
||||
<ChartBox>
|
||||
<Stack>
|
||||
|
||||
Reference in new issue
Block a user