import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { SmartCampusMetricsConfig } from './index'
import dataJson from './data.json'

export const option = {
  dataset: dataJson.source,
  title: '智慧园区',
  titleColor: '#ffffff',
  titleSize: 22,
  labelColor: '#B0E0E6',
  labelSize: 16,
  valueColor: '#00E5FF',
  valueSize: 32,
  unitColor: '#B0E0E6',
  unitSize: 14,
  accentColor1: '#4A90E2',
  accentColor2: '#8A2BE2'
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = SmartCampusMetricsConfig.key
  public chartConfig = SmartCampusMetricsConfig
  public option = option
}
