Skip to content

Commit

Permalink
fix #4348 - dumbbell chart fix for timescale xaxis
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed May 8, 2024
1 parent 84c2ca8 commit 33420bb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/charts/RangeBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ class RangeBar extends Bar {
zeroW // zeroW is the baseline where 0 meets x axis

let realIndex = w.globals.comboCharts ? seriesIndex[i] : i
let {columnGroupIndex} =
this.barHelpers.getGroupIndex(realIndex)
let { columnGroupIndex } = this.barHelpers.getGroupIndex(realIndex)

// el to which series will be drawn
let elSeries = graphics.group({
Expand Down Expand Up @@ -278,7 +277,7 @@ class RangeBar extends Bar {
}
}
} else {
if (rowIndex > -1) {
if (rowIndex > -1 && !w.globals.timescaleLabels.length) {
if (w.config.plotOptions.bar.rangeBarGroupRows) {
barXPosition = srtx + xDivision * rowIndex
} else {
Expand Down Expand Up @@ -376,12 +375,13 @@ class RangeBar extends Bar {
x,
y: y2,
goalY: this.barHelpers.getGoalValues(
'y',
null,
zeroH,
i,
j,
indexes.translationsIndex),
'y',
null,
zeroH,
i,
j,
indexes.translationsIndex
),
barXPosition,
}
}
Expand Down

0 comments on commit 33420bb

Please sign in to comment.