config.ts 792 B

12345678910111213141516171819202122232425
  1. import { PublicConfigClass } from '@/packages/public'
  2. import { CapsuleChartConfig } from './index'
  3. import { CreateComponentType } from '@/packages/index.d'
  4. import { chartInitConfig } from '@/settings/designSetting'
  5. import cloneDeep from 'lodash/cloneDeep'
  6. import dataJson from './data.json'
  7. export const option = {
  8. dataset: dataJson,
  9. colors: ['#c4ebad', '#6be6c1', '#a0a7e6', '#96dee8', '#3fb1e3' ],
  10. unit: '',
  11. itemHeight: 10,
  12. valueFontSize: 16,
  13. paddingRight: 50,
  14. paddingLeft: 50,
  15. showValue: true
  16. }
  17. export default class Config extends PublicConfigClass implements CreateComponentType {
  18. public key: string = CapsuleChartConfig.key
  19. public attr = { ...chartInitConfig, zIndex: -1 }
  20. public chartConfig = cloneDeep(CapsuleChartConfig)
  21. public option = cloneDeep(option)
  22. }