diff --git a/frontend/src/components/resourcechart/resourcechart.js b/frontend/src/components/resourcechart/resourcechart.js
index 5a0b8c4..db5a6c4 100644
--- a/frontend/src/components/resourcechart/resourcechart.js
+++ b/frontend/src/components/resourcechart/resourcechart.js
@@ -14,6 +14,7 @@ import FormHelperText from '@material-ui/core/FormHelperText';
import MenuItem from '@material-ui/core/MenuItem';
import FormControl from '@material-ui/core/FormControl';
import Select from '@material-ui/core/Select';
+import LinearProgress from '@material-ui/core/LinearProgress';
const useStyles = makeStyles((theme) => ({
root: {
@@ -40,8 +41,12 @@ export default function ResourceChart(props) {
const classes = useStyles();
const [data, setData] = React.useState(null);
const [interval, setInterval] = React.useState('day');
+ const [loading, setLoading] = React.useState(null);
let { id } = useParams();
const loadData = async () => {
+ if (loading === null) {
+ setLoading(