diff --git a/frontend/src/components/details/PieChartComponent.jsx b/frontend/src/components/details/PieChartComponent.jsx
index 560cd2bf..b63b2750 100644
--- a/frontend/src/components/details/PieChartComponent.jsx
+++ b/frontend/src/components/details/PieChartComponent.jsx
@@ -15,13 +15,21 @@ const PieChartComponent = () => {
//series.reverse();
// commented the two lines, because otherwise the numbers don't match the labels
const options = {
+ maintainAspectRatio: false,
+ responsive: true,
+ legend: {
+ position: 'bottom',
+ // labels: {
+ // boxWidth: 10
+ // }
+ },
chart: {
type: 'donut'
},
- legend: {
- fontSize: theme.typography.chartItemstitle.fontSize,
- fontWeight: theme.typography.chartItemstitle.fontWeight
- },
+ // legend: {
+ // // fontSize: theme.typography.chartItemstitle.fontSize,
+ // // fontWeight: theme.typography.chartItemstitle.fontWeight
+ // },
labels: [
'Transformer oil',
'Steel',
@@ -70,7 +78,7 @@ const PieChartComponent = () => {
};
return (
-
+
);
diff --git a/frontend/src/components/sidebar/SidebarComponent.js b/frontend/src/components/sidebar/SidebarComponent.js
index f8c68488..775e679d 100644
--- a/frontend/src/components/sidebar/SidebarComponent.js
+++ b/frontend/src/components/sidebar/SidebarComponent.js
@@ -7,6 +7,7 @@ import Menu from './MenuComponent';
import MenuItem from './MenuItemComponent';
import logo from 'assets/logo/LogoCarbonteam.png';
import LoginComponent from 'components/login/LoginComponent';
+import slugs from 'resources/slugs';
/**
* The SidebarComponent consists out of the functionality and the Look and Feel of the Left-Side-Navigationbar
@@ -190,7 +191,7 @@ function SidebarComponent() {
onClick={() => onClick(SLUGS.settings)}
/>
-
+