import React from 'react'; import { NoContent } from 'UI'; import { Styles, AvgLabel } from '../../common'; import { ComposedChart, Bar, BarChart, CartesianGrid, ResponsiveContainer, XAxis, YAxis, ReferenceLine, Tooltip } from 'recharts'; import { NO_METRIC_DATA } from 'App/constants/messages' const PercentileLine = props => { const { viewBox: { x, y }, xoffset, yheight, height, label } = props; return ( {label} ); }; interface Props { data: any } function ResponseTimeDistribution(props: Props) { const { data } = props; const colors = Styles.colors; return ( 'Page Response Time: ' + val} /> { data.percentiles && data.percentiles.map((item: any, i: number) => ( } // allowDecimals={false} x={item.responseTime} strokeWidth={0} strokeOpacity={1} /> ))} ); } export default ResponseTimeDistribution;