| 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
 | | <template> |  |   <a-card |  |     class="general-card" |  |     :title="$t('multiDAnalysis.card.title.contentTypeDistribution')" |  |     :header-style="{ paddingBottom: 0 }" |  |   > |  |     <Chart style="height: 222px" :option="chartOption" /> |  |   </a-card> |  | </template> |  |   |  | <script lang="ts" setup> |  |   import useChartOption from '@/hooks/chart-option'; |  |   |  |   const { chartOption } = useChartOption((isDark) => { |  |     return { |  |       grid: { |  |         left: 0, |  |         right: 0, |  |         top: 0, |  |         bottom: 20, |  |       }, |  |       legend: { |  |         show: true, |  |         top: 'center', |  |         right: '0', |  |         orient: 'vertical', |  |         icon: 'circle', |  |         itemWidth: 10, |  |         itemHeight: 10, |  |         itemGap: 20, |  |         textStyle: { |  |           color: isDark ? '#ffffff' : '#4E5969', |  |         }, |  |       }, |  |       radar: { |  |         center: ['40%', '50%'], |  |         radius: 80, |  |         indicator: [ |  |           { name: '国际', max: 6500 }, |  |           { name: '财经', max: 22000 }, |  |           { name: '科技', max: 30000 }, |  |           { name: '其他', max: 38000 }, |  |           { name: '体育', max: 52000 }, |  |           { name: '娱乐', max: 25000 }, |  |         ], |  |         axisName: { |  |           color: isDark ? '#ffffff' : '#1D2129', |  |         }, |  |         axisLine: { |  |           lineStyle: { |  |             color: isDark ? '#484849' : '#E5E6EB', |  |           }, |  |         }, |  |         splitLine: { |  |           lineStyle: { |  |             color: isDark ? '#484849' : '#E5E6EB', |  |           }, |  |         }, |  |         splitArea: { |  |           areaStyle: { |  |             color: [], |  |           }, |  |         }, |  |       }, |  |       series: [ |  |         { |  |           type: 'radar', |  |           areaStyle: { |  |             opacity: 0.2, |  |           }, |  |           data: [ |  |             { |  |               value: [4850, 19000, 19000, 29500, 35200, 20000], |  |               name: '纯文本', |  |               symbol: 'none', |  |               itemStyle: { |  |                 color: isDark ? '#6CAAF5' : '#249EFF', |  |               }, |  |             }, |  |             { |  |               value: [2250, 17000, 21000, 23500, 42950, 22000], |  |               name: '图文类', |  |               symbol: 'none', |  |               itemStyle: { |  |                 color: isDark ? '#A079DC' : '#313CA9', |  |               }, |  |             }, |  |             { |  |               value: [5850, 11000, 26000, 27500, 46950, 18000], |  |               name: '视频类', |  |               symbol: 'none', |  |               itemStyle: { |  |                 color: isDark ? '#3D72F6' : '#21CCFF', |  |               }, |  |             }, |  |           ], |  |         }, |  |       ], |  |     }; |  |   }); |  | </script> |  |   |  | <style scoped lang="less"></style> | 
 |