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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
| import { useI18n } from '@/hooks/web/useI18n'
|
| const { t } = useI18n()
|
| export const PIE_EDITOR_PROPERTY: EditorProperty[] = [
| 'background-overall-component',
| 'border-style',
| 'basic-style-selector',
| 'title-selector',
| 'legend-selector',
| 'label-selector',
| 'tooltip-selector',
| 'jump-set',
| 'linkage'
| ]
| export const PIE_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
| 'background-overall-component': ['all'],
| 'border-style': ['all'],
| 'label-selector': [
| 'fontSize',
| 'color',
| 'rPosition',
| 'showDimension',
| 'showQuota',
| 'showProportion'
| ],
| 'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter', 'show'],
| 'basic-style-selector': ['colors', 'alpha', 'radius', 'seriesColor'],
| 'title-selector': [
| 'title',
| 'fontSize',
| 'color',
| 'hPosition',
| 'isItalic',
| 'isBolder',
| 'remarkShow',
| 'fontFamily',
| 'letterSpace',
| 'fontShadow'
| ],
| 'legend-selector': ['icon', 'orient', 'fontSize', 'color', 'hPosition', 'vPosition']
| }
|
| export const PIE_AXIS_TYPE: AxisType[] = [
| 'xAxis',
| 'yAxis',
| 'drill',
| 'filter',
| 'extLabel',
| 'extTooltip'
| ]
|
| export const PIE_AXIS_CONFIG: AxisConfig = {
| xAxis: {
| name: `${t('chart.drag_block_pie_label')} / ${t('chart.dimension')}`,
| type: 'd'
| },
| yAxis: {
| name: `${t('chart.drag_block_pie_angle')} / ${t('chart.quota')}`,
| type: 'q',
| limit: 1
| }
| }
|
|