import {useTheme} from '@emotion/react'; import {AreaChart} from 'sentry/components/charts/areaChart'; import {axisLabelFormatter} from 'sentry/utils/discover/charts'; import {getDuration} from 'sentry/utils/formatters'; type Props = React.ComponentPropsWithoutRef; function Chart(props: Props) { const theme = useTheme(); return ( axisLabelFormatter(value, 'p50()'), }, }} tooltip={{valueFormatter: value => getDuration(value / 1000, 2)}} {...props} /> ); } export default Chart;