eventsChart.tsx 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. import * as React from 'react';
  2. import {InjectedRouter} from 'react-router';
  3. import {withTheme} from '@emotion/react';
  4. import type {
  5. EChartsOption,
  6. LegendComponentOption,
  7. LineSeriesOption,
  8. XAXisComponentOption,
  9. YAXisComponentOption,
  10. } from 'echarts';
  11. import {Query} from 'history';
  12. import isEqual from 'lodash/isEqual';
  13. import {Client} from 'sentry/api';
  14. import {AreaChart, AreaChartProps} from 'sentry/components/charts/areaChart';
  15. import {BarChart, BarChartProps} from 'sentry/components/charts/barChart';
  16. import ChartZoom, {ZoomRenderProps} from 'sentry/components/charts/chartZoom';
  17. import ErrorPanel from 'sentry/components/charts/errorPanel';
  18. import {LineChart, LineChartProps} from 'sentry/components/charts/lineChart';
  19. import ReleaseSeries from 'sentry/components/charts/releaseSeries';
  20. import TransitionChart from 'sentry/components/charts/transitionChart';
  21. import TransparentLoadingMask from 'sentry/components/charts/transparentLoadingMask';
  22. import {
  23. getInterval,
  24. processTableResults,
  25. RELEASE_LINES_THRESHOLD,
  26. } from 'sentry/components/charts/utils';
  27. import {WorldMapChart, WorldMapChartProps} from 'sentry/components/charts/worldMapChart';
  28. import {IconWarning} from 'sentry/icons';
  29. import {t} from 'sentry/locale';
  30. import {DateString, OrganizationSummary} from 'sentry/types';
  31. import {Series} from 'sentry/types/echarts';
  32. import {defined} from 'sentry/utils';
  33. import {
  34. axisLabelFormatter,
  35. axisLabelFormatterUsingAggregateOutputType,
  36. tooltipFormatter,
  37. } from 'sentry/utils/discover/charts';
  38. import {TableDataWithTitle} from 'sentry/utils/discover/discoverQuery';
  39. import {
  40. aggregateMultiPlotType,
  41. aggregateOutputType,
  42. AggregationOutputType,
  43. getEquation,
  44. isEquation,
  45. } from 'sentry/utils/discover/fields';
  46. import {decodeList} from 'sentry/utils/queryString';
  47. import {Theme} from 'sentry/utils/theme';
  48. import EventsGeoRequest from './eventsGeoRequest';
  49. import EventsRequest from './eventsRequest';
  50. type ChartComponent =
  51. | React.ComponentType<BarChartProps>
  52. | React.ComponentType<AreaChartProps>
  53. | React.ComponentType<LineChartProps>
  54. | React.ComponentType<WorldMapChartProps>;
  55. type ChartProps = {
  56. currentSeriesNames: string[];
  57. loading: boolean;
  58. previousSeriesNames: string[];
  59. reloading: boolean;
  60. stacked: boolean;
  61. tableData: TableDataWithTitle[];
  62. theme: Theme;
  63. timeseriesData: Series[];
  64. yAxis: string;
  65. zoomRenderProps: ZoomRenderProps;
  66. additionalSeries?: LineSeriesOption[];
  67. chartComponent?: ChartComponent;
  68. chartOptions?: Omit<EChartsOption, 'xAxis' | 'yAxis'> & {
  69. xAxis?: XAXisComponentOption;
  70. yAxis?: YAXisComponentOption;
  71. };
  72. colors?: string[];
  73. /**
  74. * By default, only the release series is disableable. This adds
  75. * a list of series names that are also disableable.
  76. */
  77. disableableSeries?: string[];
  78. fromDiscover?: boolean;
  79. height?: number;
  80. interval?: string;
  81. legendOptions?: LegendComponentOption;
  82. minutesThresholdToDisplaySeconds?: number;
  83. previousSeriesTransformer?: (series?: Series | null) => Series | null | undefined;
  84. previousTimeseriesData?: Series[] | null;
  85. referrer?: string;
  86. releaseSeries?: Series[];
  87. /**
  88. * A callback to allow for post-processing of the series data.
  89. * Can be used to rename series or even insert a new series.
  90. */
  91. seriesTransformer?: (series: Series[]) => Series[];
  92. showDaily?: boolean;
  93. showLegend?: boolean;
  94. timeframe?: {end: number; start: number};
  95. timeseriesResultsTypes?: Record<string, AggregationOutputType>;
  96. topEvents?: number;
  97. };
  98. type State = {
  99. forceUpdate: boolean;
  100. seriesSelection: Record<string, boolean>;
  101. };
  102. class Chart extends React.Component<ChartProps, State> {
  103. state: State = {
  104. seriesSelection: {},
  105. forceUpdate: false,
  106. };
  107. shouldComponentUpdate(nextProps: ChartProps, nextState: State) {
  108. if (nextState.forceUpdate) {
  109. return true;
  110. }
  111. if (!isEqual(this.state.seriesSelection, nextState.seriesSelection)) {
  112. return true;
  113. }
  114. if (nextProps.reloading || !nextProps.timeseriesData) {
  115. return false;
  116. }
  117. if (
  118. isEqual(this.props.timeseriesData, nextProps.timeseriesData) &&
  119. isEqual(this.props.releaseSeries, nextProps.releaseSeries) &&
  120. isEqual(this.props.previousTimeseriesData, nextProps.previousTimeseriesData) &&
  121. isEqual(this.props.tableData, nextProps.tableData) &&
  122. isEqual(this.props.additionalSeries, nextProps.additionalSeries)
  123. ) {
  124. return false;
  125. }
  126. return true;
  127. }
  128. getChartComponent(): ChartComponent {
  129. const {showDaily, timeseriesData, yAxis, chartComponent} = this.props;
  130. if (defined(chartComponent)) {
  131. return chartComponent;
  132. }
  133. if (showDaily) {
  134. return BarChart;
  135. }
  136. if (timeseriesData.length > 1) {
  137. switch (aggregateMultiPlotType(yAxis)) {
  138. case 'line':
  139. return LineChart;
  140. case 'area':
  141. return AreaChart;
  142. default:
  143. throw new Error(`Unknown multi plot type for ${yAxis}`);
  144. }
  145. }
  146. return AreaChart;
  147. }
  148. handleLegendSelectChanged = legendChange => {
  149. const {disableableSeries = []} = this.props;
  150. const {selected} = legendChange;
  151. const seriesSelection = Object.keys(selected).reduce((state, key) => {
  152. // we only want them to be able to disable the Releases&Other series,
  153. // and not any of the other possible series here
  154. const disableable =
  155. ['Releases', 'Other'].includes(key) || disableableSeries.includes(key);
  156. state[key] = disableable ? selected[key] : true;
  157. return state;
  158. }, {});
  159. // we have to force an update here otherwise ECharts will
  160. // update its internal state and disable the series
  161. this.setState({seriesSelection, forceUpdate: true}, () =>
  162. this.setState({forceUpdate: false})
  163. );
  164. };
  165. render() {
  166. const {
  167. theme,
  168. loading: _loading,
  169. reloading: _reloading,
  170. yAxis,
  171. releaseSeries,
  172. zoomRenderProps,
  173. timeseriesData,
  174. previousTimeseriesData,
  175. showLegend,
  176. legendOptions,
  177. chartOptions: chartOptionsProp,
  178. currentSeriesNames,
  179. previousSeriesNames,
  180. seriesTransformer,
  181. previousSeriesTransformer,
  182. colors,
  183. height,
  184. timeframe,
  185. topEvents,
  186. tableData,
  187. fromDiscover,
  188. timeseriesResultsTypes,
  189. additionalSeries,
  190. ...props
  191. } = this.props;
  192. const {seriesSelection} = this.state;
  193. let Component = this.getChartComponent();
  194. if (Component === WorldMapChart) {
  195. const {data, title} = processTableResults(tableData);
  196. const tableSeries = [
  197. {
  198. seriesName: title,
  199. data,
  200. },
  201. ];
  202. return <WorldMapChart series={tableSeries} fromDiscover={fromDiscover} />;
  203. }
  204. Component = Component as Exclude<
  205. ChartComponent,
  206. React.ComponentType<WorldMapChartProps>
  207. >;
  208. const data = [
  209. ...(currentSeriesNames.length > 0 ? currentSeriesNames : [t('Current')]),
  210. ...(previousSeriesNames.length > 0 ? previousSeriesNames : [t('Previous')]),
  211. ...(additionalSeries ? additionalSeries.map(series => series.name as string) : []),
  212. ];
  213. const releasesLegend = t('Releases');
  214. const hasOther = topEvents && topEvents + 1 === timeseriesData.length;
  215. if (hasOther) {
  216. data.push('Other');
  217. }
  218. if (Array.isArray(releaseSeries)) {
  219. data.push(releasesLegend);
  220. }
  221. // Temporary fix to improve performance on pages with a high number of releases.
  222. const releases = releaseSeries && releaseSeries[0];
  223. const hideReleasesByDefault =
  224. Array.isArray(releaseSeries) &&
  225. (releases as any)?.markLine?.data &&
  226. (releases as any).markLine.data.length >= RELEASE_LINES_THRESHOLD;
  227. const selected = !Array.isArray(releaseSeries)
  228. ? seriesSelection
  229. : Object.keys(seriesSelection).length === 0 && hideReleasesByDefault
  230. ? {[releasesLegend]: false}
  231. : seriesSelection;
  232. const legend = showLegend
  233. ? {
  234. right: 16,
  235. top: 12,
  236. data,
  237. selected,
  238. ...(legendOptions ?? {}),
  239. }
  240. : undefined;
  241. let series = Array.isArray(releaseSeries)
  242. ? [...timeseriesData, ...releaseSeries]
  243. : timeseriesData;
  244. let previousSeries = previousTimeseriesData;
  245. if (seriesTransformer) {
  246. series = seriesTransformer(series);
  247. }
  248. if (previousSeriesTransformer) {
  249. previousSeries = previousSeries?.map(
  250. prev => previousSeriesTransformer(prev) as Series
  251. );
  252. }
  253. const chartColors = timeseriesData.length
  254. ? colors?.slice(0, series.length) ?? [
  255. ...theme.charts.getColorPalette(timeseriesData.length - 2 - (hasOther ? 1 : 0)),
  256. ]
  257. : undefined;
  258. if (chartColors && chartColors.length && hasOther) {
  259. chartColors.push(theme.chartOther);
  260. }
  261. const chartOptions = {
  262. colors: chartColors,
  263. grid: {
  264. left: '24px',
  265. right: '24px',
  266. top: '32px',
  267. bottom: '12px',
  268. },
  269. seriesOptions: {
  270. showSymbol: false,
  271. },
  272. tooltip: {
  273. trigger: 'axis' as const,
  274. truncate: 80,
  275. valueFormatter: (value: number, label?: string) => {
  276. const aggregateName = label?.split(':').pop()?.trim();
  277. if (aggregateName) {
  278. return timeseriesResultsTypes
  279. ? tooltipFormatter(value, timeseriesResultsTypes[aggregateName])
  280. : tooltipFormatter(value, aggregateOutputType(aggregateName));
  281. }
  282. return tooltipFormatter(value, 'number');
  283. },
  284. },
  285. xAxis: timeframe
  286. ? {
  287. min: timeframe.start,
  288. max: timeframe.end,
  289. }
  290. : undefined,
  291. yAxis: {
  292. axisLabel: {
  293. color: theme.chartLabel,
  294. formatter: (value: number) => {
  295. if (timeseriesResultsTypes) {
  296. // Check to see if all series output types are the same. If not, then default to number.
  297. const outputType =
  298. new Set(Object.values(timeseriesResultsTypes)).size === 1
  299. ? timeseriesResultsTypes[yAxis]
  300. : 'number';
  301. return axisLabelFormatterUsingAggregateOutputType(value, outputType);
  302. }
  303. return axisLabelFormatter(value, aggregateOutputType(yAxis));
  304. },
  305. },
  306. },
  307. ...(chartOptionsProp ?? {}),
  308. animation: typeof Component === typeof BarChart ? false : undefined,
  309. };
  310. return (
  311. <Component
  312. {...props}
  313. {...zoomRenderProps}
  314. {...chartOptions}
  315. legend={legend}
  316. onLegendSelectChanged={this.handleLegendSelectChanged}
  317. series={series}
  318. previousPeriod={previousSeries ? previousSeries : undefined}
  319. height={height}
  320. additionalSeries={additionalSeries}
  321. />
  322. );
  323. }
  324. }
  325. const ThemedChart = withTheme(Chart);
  326. export type EventsChartProps = {
  327. api: Client;
  328. /**
  329. * Absolute end date.
  330. */
  331. end: DateString;
  332. /**
  333. * Environment condition.
  334. */
  335. environments: string[];
  336. organization: OrganizationSummary;
  337. /**
  338. * Project ids
  339. */
  340. projects: number[];
  341. /**
  342. * The discover query string to find events with.
  343. */
  344. query: string;
  345. router: InjectedRouter;
  346. /**
  347. * Absolute start date.
  348. */
  349. start: DateString;
  350. /**
  351. * The aggregate/metric to plot.
  352. */
  353. yAxis: string | string[];
  354. additionalSeries?: LineSeriesOption[];
  355. /**
  356. * Markup for optional chart header
  357. */
  358. chartHeader?: React.ReactNode;
  359. /**
  360. * Override the default color palette.
  361. */
  362. colors?: string[];
  363. confirmedQuery?: boolean;
  364. /**
  365. * Name of the series
  366. */
  367. currentSeriesName?: string;
  368. /**
  369. * Don't show the previous period's data. Will automatically disable
  370. * when start/end are used.
  371. */
  372. disablePrevious?: boolean;
  373. /**
  374. * Don't show the release marklines.
  375. */
  376. disableReleases?: boolean;
  377. /**
  378. * A list of release names to visually emphasize. Can only be used when `disableReleases` is false.
  379. */
  380. emphasizeReleases?: string[];
  381. /**
  382. * The fields that act as grouping conditions when generating a topEvents chart.
  383. */
  384. field?: string[];
  385. /**
  386. * The interval resolution for a chart e.g. 1m, 5m, 1d
  387. */
  388. interval?: string;
  389. /**
  390. * Whether or not the request for processed baseline data has been resolved/terminated
  391. */
  392. loadingAdditionalSeries?: boolean;
  393. /**
  394. * Order condition when showing topEvents
  395. */
  396. orderby?: string;
  397. /**
  398. * Relative datetime expression. eg. 14d
  399. */
  400. period?: string | null;
  401. preserveReleaseQueryParams?: boolean;
  402. /**
  403. * Name of the previous series
  404. */
  405. previousSeriesName?: string;
  406. /**
  407. * A unique name for what's triggering this request, see organization_events_stats for an allowlist
  408. */
  409. referrer?: string;
  410. releaseQueryExtra?: Query;
  411. reloadingAdditionalSeries?: boolean;
  412. /**
  413. * Override the interval calculation and show daily results.
  414. */
  415. showDaily?: boolean;
  416. /**
  417. * Fetch n top events as dictated by the field and orderby props.
  418. */
  419. topEvents?: number;
  420. /**
  421. * Chart zoom will change 'pageStart' instead of 'start'
  422. */
  423. usePageZoom?: boolean;
  424. /**
  425. * Should datetimes be formatted in UTC?
  426. */
  427. utc?: boolean | null;
  428. /**
  429. * Whether or not to zerofill results
  430. */
  431. withoutZerofill?: boolean;
  432. } & Pick<
  433. ChartProps,
  434. | 'seriesTransformer'
  435. | 'previousSeriesTransformer'
  436. | 'showLegend'
  437. | 'minutesThresholdToDisplaySeconds'
  438. | 'disableableSeries'
  439. | 'legendOptions'
  440. | 'chartOptions'
  441. | 'chartComponent'
  442. | 'height'
  443. | 'fromDiscover'
  444. >;
  445. type ChartDataProps = {
  446. errored: boolean;
  447. loading: boolean;
  448. reloading: boolean;
  449. zoomRenderProps: ZoomRenderProps;
  450. previousTimeseriesData?: Series[] | null;
  451. releaseSeries?: Series[];
  452. results?: Series[];
  453. tableData?: TableDataWithTitle[];
  454. timeframe?: {end: number; start: number};
  455. timeseriesData?: Series[];
  456. timeseriesResultsTypes?: Record<string, AggregationOutputType>;
  457. topEvents?: number;
  458. };
  459. class EventsChart extends React.Component<EventsChartProps> {
  460. isStacked() {
  461. const {topEvents, yAxis} = this.props;
  462. return (
  463. (typeof topEvents === 'number' && topEvents > 0) ||
  464. (Array.isArray(yAxis) && yAxis.length > 1)
  465. );
  466. }
  467. render() {
  468. const {
  469. api,
  470. organization,
  471. period,
  472. utc,
  473. query,
  474. router,
  475. start,
  476. end,
  477. projects,
  478. environments,
  479. showLegend,
  480. minutesThresholdToDisplaySeconds,
  481. yAxis,
  482. disablePrevious,
  483. disableReleases,
  484. emphasizeReleases,
  485. currentSeriesName: currentName,
  486. previousSeriesName: previousName,
  487. seriesTransformer,
  488. previousSeriesTransformer,
  489. field,
  490. interval,
  491. showDaily,
  492. topEvents,
  493. orderby,
  494. confirmedQuery,
  495. colors,
  496. chartHeader,
  497. legendOptions,
  498. chartOptions,
  499. preserveReleaseQueryParams,
  500. releaseQueryExtra,
  501. disableableSeries,
  502. chartComponent,
  503. usePageZoom,
  504. height,
  505. withoutZerofill,
  506. fromDiscover,
  507. additionalSeries,
  508. loadingAdditionalSeries,
  509. reloadingAdditionalSeries,
  510. ...props
  511. } = this.props;
  512. // Include previous only on relative dates (defaults to relative if no start and end)
  513. const includePrevious = !disablePrevious && !start && !end;
  514. const yAxisArray = decodeList(yAxis);
  515. const yAxisSeriesNames = yAxisArray.map(name => {
  516. let yAxisLabel = name && isEquation(name) ? getEquation(name) : name;
  517. if (yAxisLabel && yAxisLabel.length > 60) {
  518. yAxisLabel = yAxisLabel.substr(0, 60) + '...';
  519. }
  520. return yAxisLabel;
  521. });
  522. const previousSeriesNames = previousName
  523. ? [previousName]
  524. : yAxisSeriesNames.map(name => t('previous %s', name));
  525. const currentSeriesNames = currentName ? [currentName] : yAxisSeriesNames;
  526. const intervalVal = showDaily ? '1d' : interval || getInterval(this.props, 'high');
  527. let chartImplementation = ({
  528. zoomRenderProps,
  529. releaseSeries,
  530. errored,
  531. loading,
  532. reloading,
  533. results,
  534. timeseriesData,
  535. previousTimeseriesData,
  536. timeframe,
  537. tableData,
  538. timeseriesResultsTypes,
  539. }: ChartDataProps) => {
  540. if (errored) {
  541. return (
  542. <ErrorPanel>
  543. <IconWarning color="gray300" size="lg" />
  544. </ErrorPanel>
  545. );
  546. }
  547. const seriesData = results ? results : timeseriesData;
  548. return (
  549. <TransitionChart
  550. loading={loading}
  551. reloading={reloading || !!reloadingAdditionalSeries}
  552. height={height ? `${height}px` : undefined}
  553. >
  554. <TransparentLoadingMask visible={reloading || !!reloadingAdditionalSeries} />
  555. {React.isValidElement(chartHeader) && chartHeader}
  556. <ThemedChart
  557. zoomRenderProps={zoomRenderProps}
  558. loading={loading || !!loadingAdditionalSeries}
  559. reloading={reloading || !!reloadingAdditionalSeries}
  560. showLegend={showLegend}
  561. minutesThresholdToDisplaySeconds={minutesThresholdToDisplaySeconds}
  562. releaseSeries={releaseSeries || []}
  563. timeseriesData={seriesData ?? []}
  564. previousTimeseriesData={previousTimeseriesData}
  565. currentSeriesNames={currentSeriesNames}
  566. previousSeriesNames={previousSeriesNames}
  567. seriesTransformer={seriesTransformer}
  568. additionalSeries={additionalSeries}
  569. previousSeriesTransformer={previousSeriesTransformer}
  570. stacked={this.isStacked()}
  571. yAxis={yAxisArray[0]}
  572. showDaily={showDaily}
  573. colors={colors}
  574. legendOptions={legendOptions}
  575. chartOptions={chartOptions}
  576. disableableSeries={disableableSeries}
  577. chartComponent={chartComponent}
  578. height={height}
  579. timeframe={timeframe}
  580. topEvents={topEvents}
  581. tableData={tableData ?? []}
  582. fromDiscover={fromDiscover}
  583. timeseriesResultsTypes={timeseriesResultsTypes}
  584. />
  585. </TransitionChart>
  586. );
  587. };
  588. if (!disableReleases) {
  589. const previousChart = chartImplementation;
  590. chartImplementation = chartProps => (
  591. <ReleaseSeries
  592. utc={utc}
  593. period={period}
  594. start={start}
  595. end={end}
  596. projects={projects}
  597. environments={environments}
  598. emphasizeReleases={emphasizeReleases}
  599. preserveQueryParams={preserveReleaseQueryParams}
  600. queryExtra={releaseQueryExtra}
  601. >
  602. {({releaseSeries}) => previousChart({...chartProps, releaseSeries})}
  603. </ReleaseSeries>
  604. );
  605. }
  606. return (
  607. <ChartZoom
  608. router={router}
  609. period={period}
  610. start={start}
  611. end={end}
  612. utc={utc}
  613. usePageDate={usePageZoom}
  614. {...props}
  615. >
  616. {zoomRenderProps => {
  617. if (chartComponent === WorldMapChart) {
  618. return (
  619. <EventsGeoRequest
  620. api={api}
  621. organization={organization}
  622. yAxis={yAxis}
  623. query={query}
  624. orderby={orderby}
  625. projects={projects}
  626. period={period}
  627. start={start}
  628. end={end}
  629. environments={environments}
  630. referrer={props.referrer}
  631. >
  632. {({errored, loading, reloading, tableData}) =>
  633. chartImplementation({
  634. errored,
  635. loading,
  636. reloading,
  637. zoomRenderProps,
  638. tableData,
  639. })
  640. }
  641. </EventsGeoRequest>
  642. );
  643. }
  644. return (
  645. <EventsRequest
  646. {...props}
  647. api={api}
  648. organization={organization}
  649. period={period}
  650. project={projects}
  651. environment={environments}
  652. start={start}
  653. end={end}
  654. interval={intervalVal}
  655. query={query}
  656. includePrevious={includePrevious}
  657. currentSeriesNames={currentSeriesNames}
  658. previousSeriesNames={previousSeriesNames}
  659. yAxis={yAxis}
  660. field={field}
  661. orderby={orderby}
  662. topEvents={topEvents}
  663. confirmedQuery={confirmedQuery}
  664. partial
  665. // Cannot do interpolation when stacking series
  666. withoutZerofill={withoutZerofill && !this.isStacked()}
  667. >
  668. {eventData => {
  669. return chartImplementation({
  670. ...eventData,
  671. zoomRenderProps,
  672. });
  673. }}
  674. </EventsRequest>
  675. );
  676. }}
  677. </ChartZoom>
  678. );
  679. }
  680. }
  681. export default EventsChart;