diff --git a/frontend/src/views/chart/chart/common/common.js b/frontend/src/views/chart/chart/common/common.js index d4bf4e371e..e1e5de1641 100644 --- a/frontend/src/views/chart/chart/common/common.js +++ b/frontend/src/views/chart/chart/common/common.js @@ -216,12 +216,13 @@ export function seniorCfg(chart_option, chart) { } } } + // begin mark line settings + chart_option.series[0].markLine = { + symbol: 'none', + data: [] + } if (senior.assistLine && senior.assistLine.length > 0) { if (chart_option.series && chart_option.series.length > 0) { - chart_option.series[0].markLine = { - symbol: 'none', - data: [] - } const customStyle = JSON.parse(chart.customStyle) let xAxis, yAxis if (customStyle.xAxis) {