index.config.ts 765 Bytes
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]],
    }],
  }
}