diff --git a/src/layout/components/AppMain/data.ts b/src/layout/components/AppMain/data.ts index 3c71e49..57e6d10 100644 --- a/src/layout/components/AppMain/data.ts +++ b/src/layout/components/AppMain/data.ts @@ -13,7 +13,10 @@ const option = ref({ }, tooltip: {}, legend: { - data: ['出园', '入园'], + data: [ + { name: '出园', icon: 'rect', itemStyle: { color: '#4182FF' } }, + { name: '入园', icon: 'rect', itemStyle: { color: '#00FFFF' } }, + ], icon: 'rect', right: 0, top: 0, @@ -21,10 +24,6 @@ const option = ref({ orient: 'horizontal', align: 'left', textStyle: { fontSize: 14, color: '#fff' }, - data: [ - { name: '出园', icon: 'rect', itemStyle: { color: '#4182FF' } }, - { name: '入园', icon: 'rect', itemStyle: { color: '#00FFFF' } }, - ], }, xAxis: { type: 'category', @@ -50,12 +49,6 @@ const option = ref({ type: 'line', data: [3, 9, 2, 8, 3, 4, 8], smooth: true, - itemStyle: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#00FFFF' }, - { offset: 1, color: 'rgba(0,255,255,0)' }, - ]), - }, symbol: 'circle', symbolSize: 10, areaStyle: {