Skip to content

Commit

Permalink
Merge pull request #4403 from rosco54/Issue_4402
Browse files Browse the repository at this point in the history
Fix issue 4402
  • Loading branch information
junedchhipa committed Apr 16, 2024
2 parents 9158723 + 6b71376 commit 2859dd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/charts/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class Line {
// the first value in the current series is not null or undefined
let firstPrevY = this.lineHelpers.determineFirstPrevY({
i,
realIndex,
series,
prevY,
lineYPosition,
Expand All @@ -117,6 +118,7 @@ class Line {
if (type === 'rangeArea') {
firstPrevY2 = this.lineHelpers.determineFirstPrevY({
i,
realIndex,
series: seriesRangeEnd,
prevY: prevY2,
lineYPosition,
Expand Down
6 changes: 3 additions & 3 deletions src/charts/common/line/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ export default class Helpers {
}
}

determineFirstPrevY({ i, series, prevY, lineYPosition, translationsIndex }) {
determineFirstPrevY({ i, realIndex, series, prevY, lineYPosition, translationsIndex }) {
let w = this.w
let stackSeries =
(w.config.chart.stacked && !w.globals.comboCharts) ||
(w.config.chart.stacked &&
w.globals.comboCharts &&
(!this.w.config.chart.stackOnlyBar ||
this.w.config.series[i]?.type === 'bar'
|| this.w.config.series[i]?.type === 'column'))
this.w.config.series[realIndex]?.type === 'bar'
|| this.w.config.series[realIndex]?.type === 'column'))

if (typeof series[i]?.[0] !== 'undefined') {
if (stackSeries) {
Expand Down

0 comments on commit 2859dd0

Please sign in to comment.