Skip to content

Commit

Permalink
fix: banded tooltip for barSeries specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Apr 11, 2024
1 parent 30f5861 commit bed2b45
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/charts/src/chart_types/xy_chart/rendering/bars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ export function renderBars(
};
indexedGeometryMap.set(barGeometry);

if (isBandedSpec) {
indexedGeometryMap.set({
...barGeometry,
y: y0Scaled,
value: {
x: datum.x,
y: getDatumYValue(datum, true, isBandedSpec, stackMode),
mark: null,
accessor: BandedAccessorType.Y0,
datum: datum.datum,
},
});
}

if (y1 !== null && initialY1 !== null && filled?.y1 === undefined) {
barGeometries.push(barGeometry);
}
Expand Down

0 comments on commit bed2b45

Please sign in to comment.