From bc7a5c3de245044872b1b33a78fcca3d8f5176c4 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 13 Feb 2025 14:47:56 -0800 Subject: [PATCH] Add a bar chart --- .../Bar/index.jsx | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Client/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Bar/index.jsx diff --git a/Client/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Bar/index.jsx b/Client/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Bar/index.jsx new file mode 100644 index 000000000..6b013c29f --- /dev/null +++ b/Client/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Bar/index.jsx @@ -0,0 +1,95 @@ +import { + BarChart, + Bar, + CartesianGrid, + ResponsiveContainer, + Tooltip, + XAxis, +} from "recharts"; +import { useTheme } from "@emotion/react"; +import PropTypes from "prop-types"; +import CustomToolTip from "../Helpers/ToolTip"; +import CustomTick from "../Helpers/Tick"; + +const DistributedUptimeResponseBarChart = ({ checks }) => { + const theme = useTheme(); + return ( + + + + + + + + + + } + wrapperStyle={{ pointerEvents: "none" }} + /> + } + minTickGap={0} + axisLine={false} + tickLine={false} + height={20} + /> + + + + ); +}; + +DistributedUptimeResponseBarChart.propTypes = { + checks: PropTypes.array, +}; + +export default DistributedUptimeResponseBarChart;