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

export const option = {
  dataset: dataJson.source,
  title: '智慧',
  subtitle: 'Wisdom',
  titleColor: '#ffffff',
  subtitleColor: '#B0E0E6',
  labelColor: '#B0E0E6',
  valueColor: '#00E5FF',
  unitColor: '#B0E0E6',
  borderColor1: '#00E5FF',
  borderColor2: '#8A2BE2',
  titleSize: 24,
  subtitleSize: 14,
  labelSize: 16,
  valueSize: 28,
  unitSize: 14
}

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