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

export const option = {
  dataset: dataJson.source,
  title: '未处置报警数TOP5',
  titleColor: '#ffffff',
  titleSize: 18,
  rankColor: '#ffffff',
  nameColor: '#B0E0E6',
  valueColor: '#ffffff',
  barColorStart: '#00D9FF',
  barColorEnd: '#0055FF',
  dropdownOptions: ['当日', '当月', '当年'],
  dropdownDefault: '当日',
  iconColor: '#00E5FF'
}

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