diff --git a/src/components/Barchart.js b/src/components/Barchart.js index ce7d797..edc4d78 100644 --- a/src/components/Barchart.js +++ b/src/components/Barchart.js @@ -1,18 +1,9 @@ import React, { Component } from "react"; -import { - BarChart, - Bar, - XAxis, - YAxis, - Tooltip, - ResponsiveContainer, -} from "recharts"; -import { withStyles } from "@material-ui/styles"; -import styles from "../styles/BarchartStyles"; +import { BarChart, Bar, XAxis, YAxis, Tooltip } from "recharts"; -class Barchart extends Component { +export default class Barchart extends Component { render() { - const { data, isLoading, dataKey, stroke, classes } = this.props; + const { data, isLoading, dataKey, stroke } = this.props; let result; try { const updatedData = data.slice(1).slice(-50); @@ -35,25 +26,21 @@ class Barchart extends Component { } catch (err) {} return ( -