Skip to content

Commit

Permalink
Recent refactor broke rangeArea plots
Browse files Browse the repository at this point in the history
  • Loading branch information
rosco54 committed Sep 27, 2024
1 parent db6c1c7 commit 103eed3
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 103eed3

Please sign in to comment.