Skip to content

Commit

Permalink
check for stacked result value on stacked series only
Browse files Browse the repository at this point in the history
  • Loading branch information
alxnddr committed Mar 2, 2024
1 parent 536da2c commit f1a67c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/line/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function getStackedOnPoint(
) as number;
}

if (isNaN(stackedOverValue) && !isNaN(stackResultValue)) {
if (isNaN(stackedOverValue) && (!dataCoordInfo.stacked || !isNaN(stackResultValue))) {
stackedOverValue = dataCoordInfo.valueStart;
}

Expand Down

0 comments on commit f1a67c7

Please sign in to comment.