Showing
1 changed file
with
4 additions
and
2 deletions
1 | +import { isLightboxMode } from '@/utils/env' | ||
2 | + | ||
1 | const data = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] | 3 | const data = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] |
2 | const seriesList = [ | 4 | const seriesList = [ |
3 | { value: 120, name: '123', itemStyle: { color: '#5470c6' } }, | 5 | { value: 120, name: '123', itemStyle: { color: '#5470c6' } }, |
@@ -20,7 +22,7 @@ export const defaultOption = { | @@ -20,7 +22,7 @@ export const defaultOption = { | ||
20 | }, | 22 | }, |
21 | xAxis: { | 23 | xAxis: { |
22 | type: 'category', | 24 | type: 'category', |
23 | - data, | 25 | + data: isLightboxMode() ? [] : data, |
24 | axisTick: { | 26 | axisTick: { |
25 | alignWithLabel: true, | 27 | alignWithLabel: true, |
26 | }, | 28 | }, |
@@ -38,7 +40,7 @@ export const defaultOption = { | @@ -38,7 +40,7 @@ export const defaultOption = { | ||
38 | name: '', | 40 | name: '', |
39 | type: 'bar', | 41 | type: 'bar', |
40 | barWidth: '60%', | 42 | barWidth: '60%', |
41 | - data: seriesList, | 43 | + data: isLightboxMode () ? [] : seriesList, |
42 | }, | 44 | }, |
43 | ], | 45 | ], |
44 | } | 46 | } |