diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 908eab34ff..4f48f557c8 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -98,7 +98,7 @@
@@ -430,7 +430,7 @@ export default { return true }) }, - save(getData) { + save(getData, trigger) { const view = JSON.parse(JSON.stringify(this.view)) view.id = this.view.id view.sceneId = this.view.sceneId @@ -471,6 +471,12 @@ export default { view.yaxis.splice(1, view.yaxis.length) } } + if (view.type === 'line' && trigger === 'chart') { + view.customAttr.size.lineArea = false + } + if (view.type === 'line-stack' && trigger === 'chart') { + view.customAttr.size.lineArea = true + } view.xaxis = JSON.stringify(view.xaxis) view.yaxis = JSON.stringify(view.yaxis) view.customAttr = JSON.stringify(view.customAttr)