Skip to content
Open
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
7 changes: 6 additions & 1 deletion src/chart/bar/BarView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,12 @@ class BarView extends ChartView {
}
}

const roundCapChanged = el && (el.type === 'sector' && roundCap || el.type === 'sausage' && !roundCap);
const roundCapChanged = el && (
coord.type === 'polar'
// Polar bars only use `sausage` when they are not radial.
? (el.type === 'sausage') !== (!isHorizontalOrRadial && !!roundCap)
: (el.type === 'sector' && roundCap || el.type === 'sausage' && !roundCap)
);
if (roundCapChanged) {
// roundCap changed, there is no way to use animation from a `sector` to a `sausage` shape,
// so remove the old one and create a new shape
Expand Down
40 changes: 40 additions & 0 deletions test/ut/spec/series/bar.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.