Browse Source

隐藏同向轴

Karsa 2 years ago
parent
commit
adfad9964e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/chartShow/index.vue

+ 2 - 1
src/views/chartShow/index.vue

@@ -203,6 +203,7 @@ export default defineComponent({
           min: Number(chartData[sameSideIndex].MinData),
           min: Number(chartData[sameSideIndex].MinData),
           max: Number(chartData[sameSideIndex].MaxData),
           max: Number(chartData[sameSideIndex].MaxData),
           tickWidth: sameSideIndex !== index ? 0 : 1,
           tickWidth: sameSideIndex !== index ? 0 : 1,
+          visible: sameSideIndex === index
         }
         }
 
 
         // //拼接标题 判断相同指标名称拼接来源
         // //拼接标题 判断相同指标名称拼接来源
@@ -361,7 +362,7 @@ export default defineComponent({
           min: Number(chartData[sameSideIndex].MinData),
           min: Number(chartData[sameSideIndex].MinData),
           max: Number(chartData[sameSideIndex].MaxData),
           max: Number(chartData[sameSideIndex].MaxData),
           tickWidth: sameSideIndex !== index ? 0 : 1,
           tickWidth: sameSideIndex !== index ? 0 : 1,
-          visible: serie_yIndex === index ? true : false
+          visible: serie_yIndex === index && sameSideIndex ===index
         }
         }
 
 
         // //拼接标题 判断相同指标名称拼接来源
         // //拼接标题 判断相同指标名称拼接来源