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