Merge pull request #3236 from dataease/pr@dev@fix_assist_line

fix(视图): echarts辅助线报错
This commit is contained in:
xuwei-fit2cloud 2022-09-28 15:35:11 +08:00 committed by GitHub
commit 2e4b8e4e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,9 +274,11 @@ export function seniorCfg(chart_option, chart) {
}
}
// begin mark line settings
chart_option.series[0].markLine = {
symbol: 'none',
data: []
if (chart_option.series && chart_option.series.length > 0) {
chart_option.series[0].markLine = {
symbol: 'none',
data: []
}
}
if (senior.assistLine && senior.assistLine.length > 0) {
if (chart_option.series && chart_option.series.length > 0) {