diff --git a/Client/src/Components/Charts/Gauge/index.jsx b/Client/src/Components/Charts/Gauge/index.jsx new file mode 100644 index 000000000..5743049bb --- /dev/null +++ b/Client/src/Components/Charts/Gauge/index.jsx @@ -0,0 +1,77 @@ +import React from "react"; +import { RadialBarChart, RadialBar, ResponsiveContainer } from "recharts"; +import PropTypes from "prop-types"; + +const Gauge = ({ progressValue, displayText, theme }) => { + const myStyle = { fontSize: "12px", fill: theme.palette.text.tertiary }; + const textStyle = { + textAnchor: "middle", + dominantBaseline: "middle", + style: myStyle + }; + const data = [{ value: 100 }]; + return ( + + + + + + {`${progressValue}%`} + + + {`${displayText}`} + + + + ); +}; + +Gauge.propTypes = { + progressValue: PropTypes.string, + displayText: PropTypes.string, + theme: PropTypes.object, +}; +export default Gauge;