wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { AbstractChartView, ChartLibraryType, ChartRenderType } from '../../types'
import { useI18n } from '@/hooks/web/useI18n'
 
const { t } = useI18n()
/**
 * 图片组图表
 */
export class PictureGroupView extends AbstractChartView {
  properties: EditorProperty[] = ['background-overall-component', 'border-style', 'threshold']
  propertyInner: EditorPropertyInner = {
    'background-overall-component': ['all'],
    'border-style': ['all'],
    threshold: ['tableThreshold']
  }
  axis: AxisType[] = ['xAxis', 'yAxis', 'filter']
  axisConfig: AxisConfig = {
    xAxis: {
      name: `${t('chart.dimension')}`,
      type: 'd'
    },
    yAxis: {
      name: `${t('chart.quota')}`,
      type: 'q'
    }
  }
  constructor() {
    super(ChartRenderType.CUSTOM, ChartLibraryType.PICTURE_GROUP, 'picture-group')
  }
}