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: 20,
  rankColor: '#00E5FF',
  nameColor: '#B0E0E6',
  valueColor: '#ffffff',
  barColor: '#4A90E2',
  dropdownOptions: ['当日', '当月', '当年'],
  dropdownDefault: '当日'
}

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