import React from 'react'; import { NoContent, Icon } from 'UI'; import { Styles } from '../../common'; import { AreaChart, Area, CartesianGrid, Tooltip, ResponsiveContainer, XAxis, YAxis } from 'recharts'; interface Props { data: any metric?: any } function CPULoad(props: Props) { const { data, metric } = props; const gradientDef = Styles.gradientDef(); return ( No data available for the selected period. } show={ metric.data.chart && metric.data.chart.length === 0 } style={ { height: '240px' } } > {gradientDef} Styles.tickFormatter(val)} label={{ ...Styles.axisLabelLeft, value: "CPU Load (%)" }} /> ); } export default CPULoad;