Skip to content

Commit 3cc67ab

Browse files
authored
fix(charts): Respect stacked prop in area chart (#80824)
Not all charts are unstacked. Make sure we respect the stacked prop when deciding to remove the stacking behaviour.
1 parent d922821 commit 3cc67ab

File tree

1 file changed

+4
-2
lines changed
  • static/app/views/insights/common/components

1 file changed

+4
-2
lines changed

Diff for: static/app/views/insights/common/components/chart.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,10 @@ function Chart({
250250
metricChartType
251251
);
252252
// this helper causes all the incomplete series to stack, here we remove the stacking
253-
for (const s of ingestionSeries) {
254-
delete s.stack;
253+
if (!stacked) {
254+
for (const s of ingestionSeries) {
255+
delete s.stack;
256+
}
255257
}
256258
return ingestionSeries;
257259
});

0 commit comments

Comments
 (0)