index.config.ts 486 Bytes
import type { EChartsOption } from 'echarts'
import { isLightboxMode } from '@/utils/env'

export const getDefaultOption = (): EChartsOption => {
  return {
    legend: [],
    xAxis: {
      type: 'category',
      data: isLightboxMode() ? [] : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
      type: 'value',
    },
    series: [
      {
        data: isLightboxMode() ? [] : [150, 230, 224, 218, 135, 147, 260],
        type: 'line',
      },
    ],
  }
}