Skip to content

Commit

Permalink
Merge pull request #792 from ag-grid/AG-5716-4
Browse files Browse the repository at this point in the history
AG-5716
  • Loading branch information
olegat authored Jan 3, 2024
2 parents fdb81f6 + 85d44bc commit 2744ccd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class WaterfallSeries extends _ModuleSupport.AbstractBarSeries<
const isPositive = (value ?? 0) >= 0;

const seriesItemType = this.getSeriesItemType(isPositive, datumType);
const { fill, stroke, strokeWidth, label, cornerRadius } = this.getItemConfig(seriesItemType);
const { fill, stroke, strokeWidth, label } = this.getItemConfig(seriesItemType);

const y = (isPositive ? currY : trailY) - offset;
const bottomY = (isPositive ? trailY : currY) + offset;
Expand Down Expand Up @@ -387,19 +387,19 @@ export class WaterfallSeries extends _ModuleSupport.AbstractBarSeries<
if (barAlongX) {
startCoordinates = {
x: startY + pixelAlignmentOffset,
y: cornerRadius > 0 ? nodeMidPoint.y : rect.y,
y: rect.y,
};
stopCoordinates = {
x: stopY + pixelAlignmentOffset,
y: cornerRadius > 0 ? nodeMidPoint.y : rect.y + rect.height,
y: rect.y + rect.height,
};
} else {
startCoordinates = {
x: cornerRadius > 0 ? nodeMidPoint.x : rect.x,
x: rect.x,
y: startY + pixelAlignmentOffset,
};
stopCoordinates = {
x: cornerRadius > 0 ? nodeMidPoint.x : rect.x + rect.width,
x: rect.x + rect.width,
y: stopY + pixelAlignmentOffset,
};
}
Expand Down

0 comments on commit 2744ccd

Please sign in to comment.