Skip to content

Commit d110d62

Browse files
committed
fix #3754; crosshair position in stacked columns
1 parent 6cbca3a commit d110d62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/tooltip/Position.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ export default class Position {
370370
? w.globals.columnSeries.length
371371
: w.globals.series.length
372372

373+
if (w.config.chart.stacked) {
374+
barLen = w.globals.barGroups.length
375+
}
376+
373377
let i =
374378
barLen >= 2 && barLen % 2 === 0
375379
? Math.floor(barLen / 2)

0 commit comments

Comments
 (0)