Skip to content

Commit

Permalink
Merge pull request #4730 from rosco54/RangeArea_fix_after_refactor
Browse files Browse the repository at this point in the history
Recent refactor broke rangeArea plots
  • Loading branch information
junedchhipa authored Sep 27, 2024
2 parents 369556e + 103eed3 commit 7394f79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ export default class Core {
gl.series.forEach((serie, st) => {
const seriesType = ser[st].type || chartType
if (seriesTypes[seriesType]) {
seriesTypes[seriesType].series.push(serie)
if (seriesType === 'rangeArea') {
seriesTypes[seriesType].series.push(gl.seriesRangeStart[st])
seriesTypes[seriesType].seriesRangeEnd.push(gl.seriesRangeEnd[st])
} else {
seriesTypes[seriesType].series.push(serie)
}
seriesTypes[seriesType].i.push(st)

if (seriesType === 'column' || seriesType === 'bar')
Expand Down

0 comments on commit 7394f79

Please sign in to comment.