diff --git a/frontend/src/components/resourcechart/chart.js b/frontend/src/components/resourcechart/chart.js
index 12016e1..8962982 100644
--- a/frontend/src/components/resourcechart/chart.js
+++ b/frontend/src/components/resourcechart/chart.js
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react';
import {
- LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend,
+ LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer
} from 'recharts';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
@@ -12,11 +12,15 @@ import Checkbox from '@material-ui/core/Checkbox';
const useStyles = makeStyles((theme) => ({
root: {
- display: 'flex',
+ padding: 0,
+ margin: 0,
},
formControl: {
margin: theme.spacing(2),
},
+ chart: {
+ width: 0,
+ }
}));
export default function Chart(props) {
@@ -62,23 +66,26 @@ export default function Chart(props) {
const { q0, q1, q2, q3, q4, q5, q6, q7 } = state;
return (
-
-
-
-
-
-
-
-
- {lines}
-
+
+
+
+
+
+
+
+
+
+ {lines}
+
+
+
+
+
@@ -119,7 +126,7 @@ export default function Chart(props) {
-
+
);
}
diff --git a/frontend/src/components/resourcechart/resourcechart.js b/frontend/src/components/resourcechart/resourcechart.js
index 5b81528..83228f7 100644
--- a/frontend/src/components/resourcechart/resourcechart.js
+++ b/frontend/src/components/resourcechart/resourcechart.js
@@ -103,7 +103,7 @@ export default function ResourceChart(props) {
-
+
{output(data)}