不显示数据点
使用null
作为值:
series: {
data: [5, 2, null, null, 4, 5]
}
您无需使用connectNulls
。
不显示x轴刻度
如果要隐藏空数据点的x轴刻度,请将x轴切换为type: category
,并排除这些值。请务必将它们从系列中排除。
xAxis: {
type: 'category',
data: ['thursday', 'friday', 'monday', 'tuesday']
},
series: {
data: [5, 2, 4, 5]
}