Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion static/app/components/charts/barChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ export type BarChartSeries = Series & Omit<EChartOption.SeriesBar, 'data' | 'nam
type Props = Omit<ChartProps, 'series'> & {
series: BarChartSeries[];
stacked?: boolean;
animation?: boolean;
};

class BarChart extends React.Component<Props> {
render() {
const {series, stacked, xAxis, ...props} = this.props;
const {series, stacked, xAxis, animation, ...props} = this.props;

return (
<BaseChart
Expand All @@ -33,6 +34,7 @@ class BarChart extends React.Component<Props> {
}
return {value: [name, value], itemStyle};
}),
animation,
...options,
})
)}
Expand Down
1 change: 1 addition & 0 deletions static/app/components/charts/eventsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ class Chart extends React.Component<ChartProps, State> {
},
},
...(chartOptionsProp ?? {}),
animation: typeof Component === typeof BarChart ? false : undefined,
};

return (
Expand Down