소스 검색

5.5首页图表修改

lxh 1 년 전
부모
커밋
ad056f6463
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/vent/home/colliery/components/wind-monitor.vue

+ 2 - 2
src/views/vent/home/colliery/components/wind-monitor.vue

@@ -35,7 +35,7 @@ function getOption() {
       const width = api.size([0, 1])[0] * barWidth; // 宽度
       const ballRadius = width * 0.6;
       return {
-        type: 'group',
+        type: 'item',
         children: [
           {
             // 圆形装饰
@@ -182,7 +182,7 @@ function getOption() {
           label: {
             normal: {
               show: true,
-              position: echartData.ydata.length > 0 && echartData.ydata.length <= 1 ? ['-17', '-30'] : ['-16', '-30'],
+              position: echartData.ydata.length > 0 && echartData.ydata.length <= 1 ? ['-17', '-20'] : ['-15', '-20'],
               formatter: [' {a|{c}}'].join(','),
               rich: {
                 a: {