Skip to content

Commit afc350f

Browse files
committed
improve showForNullSeries yaxis option
1 parent 60b639b commit afc350f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/modules/axes/AxesUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default class AxesUtils {
146146
!w.config.yaxis[index].show ||
147147
(!w.config.yaxis[index].showForNullSeries &&
148148
coreUtils.isSeriesNull(index) &&
149-
!w.globals.collapsedSeriesIndices.indexOf(index) === -1)
149+
w.globals.collapsedSeriesIndices.indexOf(index) === -1)
150150
)
151151
}
152152

src/modules/settings/Options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class Options {
88
this.yAxis = {
99
show: true,
1010
showAlways: false,
11-
showForNullSeries: false,
11+
showForNullSeries: true,
1212
seriesName: undefined,
1313
opposite: false,
1414
reversed: false,
@@ -214,6 +214,7 @@ export default class Options {
214214
fontSize: '13px',
215215
fontFamily: undefined,
216216
fontWeight: 400,
217+
appendTo: '.apexcharts-annotations',
217218
backgroundColor: 'transparent',
218219
borderColor: '#c2c2c2',
219220
borderRadius: 0,
@@ -230,6 +231,7 @@ export default class Options {
230231
type: 'rect',
231232
width: '100%', // accepts percentage as well as fixed numbers
232233
height: 50,
234+
appendTo: '.apexcharts-annotations',
233235
backgroundColor: '#fff',
234236
opacity: 1,
235237
borderWidth: 0,

0 commit comments

Comments
 (0)