Commit bf9d205baca0d5f02387725a72a864bfb3b5f9ff

Authored by ww
1 parent 47f12ed7

fix: DEFECT-712 data board component chart label not display full

... ... @@ -53,6 +53,7 @@ export const instrumentComponent1 = (params?: Partial<ComponentInfo>): EChartsOp
53 53 series: [
54 54 {
55 55 type: 'gauge',
  56 + radius: '50%',
56 57 center: ['50%', '60%'],
57 58 startAngle: 200,
58 59 endAngle: -20,
... ... @@ -83,15 +84,15 @@ export const instrumentComponent1 = (params?: Partial<ComponentInfo>): EChartsOp
83 84 },
84 85 },
85 86 splitLine: {
86   - distance: -45,
87   - length: 14,
  87 + distance: -40,
  88 + length: 10,
88 89 lineStyle: {
89 90 width: 3,
90 91 color: '#999',
91 92 },
92 93 },
93 94 axisLabel: {
94   - distance: -5,
  95 + distance: 0,
95 96 color: '#999',
96 97 // fontSize: 20,
97 98 },
... ... @@ -120,6 +121,7 @@ export const instrumentComponent1 = (params?: Partial<ComponentInfo>): EChartsOp
120 121 },
121 122 {
122 123 type: 'gauge',
  124 + radius: '50%',
123 125 center: ['50%', '60%'],
124 126 startAngle: 200,
125 127 endAngle: -20,
... ... @@ -239,7 +241,7 @@ export const getGradient = (key: Gradient, record: GradientInfo[] = []) => {
239 241 };
240 242
241 243 export const update_instrument_1_font = (radio: number) => {
242   - const basicFontSize = fontSize({ radio, basic: 20, max: 25, min: 12 });
  244 + const basicFontSize = fontSize({ radio, basic: 20, max: 20, min: 12 });
243 245 return {
244 246 series: [
245 247 {
... ...