index.config.ts
765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import type { EChartsOption } from 'echarts'
import { isLightboxMode } from '@/utils/env'
export const getDefaultOption = (): EChartsOption => {
return {
tooltip: {
},
legend: {
top: '10%',
left: 'center',
data: [''],
},
grid: {
top: '30%',
left: '6%',
right: '10%',
bottom: '8%',
containLabel: true,
},
xAxis: {
type: 'category',
},
yAxis: {
type: 'value',
boundaryGap: [0, '100%'],
},
series: [{
type: 'line',
name: '温度',
data: isLightboxMode()
? []
: [
['Matcha Latte', 43.3],
['Milk Tea', 83.1],
['Cheese Cocoa', 86.4],
['Walnut Brownie', 72.4]],
}],
}
}