stackedAreaChart.tsx 403 B

123456789101112131415
  1. import {Component} from 'react';
  2. import {AreaChart} from 'sentry/components/charts/areaChart';
  3. type AreaChartProps = React.ComponentProps<typeof AreaChart>;
  4. type Props = Omit<AreaChartProps, 'stacked' | 'ref'>;
  5. class StackedAreaChart extends Component<Props> {
  6. render() {
  7. return <AreaChart tooltip={{filter: val => val > 0}} {...this.props} stacked />;
  8. }
  9. }
  10. export default StackedAreaChart;