import cloneDeep from 'lodash/cloneDeep'
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { chartInitConfig, requestSqlConfig } from '@/settings/designSetting'
import { ZhiGan_SheXiangTouLeiXingConfig } from './index'
import dataJson from './data.json'

const { source } = dataJson;

export const option = {
  dataset: source,
  dataStyle: {
    backgroud: '#FFFFFF00',
    margintop: 25,
    marginleft: 20,
    height: 112,
    width: 113,
    gap: 10,

    numberFontColor: '#FFFFFF',
    numberFontSize: 16,
    titleFontColor: '#FFFFFF',
    titleFontSize: 13,
  },
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = ZhiGan_SheXiangTouLeiXingConfig.key
  public attr = { ...chartInitConfig, w: 400, h: 430, zIndex: -1 }
  public chartConfig = cloneDeep(ZhiGan_SheXiangTouLeiXingConfig)
  public option = cloneDeep(option)
  public filter = "return res.result;"
}
