import React from 'react'; import { NoContent } from 'UI'; import { Styles } from '../../common'; import Bar from './Bar'; import { NO_METRIC_DATA } from 'App/constants/messages'; interface Props { data: any; } function SessionsPerBrowser(props: Props) { const { data } = props; const firstAvg = data.chart[0] && data.chart[0].count; const getVersions = item => { return Object.keys(item) .filter(i => i !== 'browser' && i !== 'count' && i !== 'time' && i !== 'timestamp') .map(i => ({ key: 'v' + i, value: item[i] })); }; return (
{data.chart.map((item, i) => )}
); } export default SessionsPerBrowser;