diff --git a/src/views/largeScreen/components/optionList.ts b/src/views/largeScreen/components/optionList.ts index c35d06a..8ed0f51 100644 --- a/src/views/largeScreen/components/optionList.ts +++ b/src/views/largeScreen/components/optionList.ts @@ -255,6 +255,7 @@ export const getLineOption = (lineData: any) => { const maxData = Math.max(...lineData.line1.flat()); const option = { + backgroundColor: '', tooltip: { trigger: 'axis', @@ -695,6 +696,10 @@ export const getInventoryOption = () => { }; export const getBarOptions = (data: any) => { const option = { + legend: { + show: true, + top: '50%', + }, backgroundColor: '', grid: { left: '8%', @@ -846,7 +851,7 @@ export const getBarOptions = (data: any) => { ) }, label: { - show: false, + show: true, formatter: '{c}', position: 'top', color: '#fff',