diff --git a/mindinsight/ui/src/views/train-manage/scalar.vue b/mindinsight/ui/src/views/train-manage/scalar.vue index 7f91c3fd4cb662e0c3a0f7449af41803bf044626..4e3a7b75a7294ad598f11ce1bcc8b4f7aa7a3da2 100644 --- a/mindinsight/ui/src/views/train-manage/scalar.vue +++ b/mindinsight/ui/src/views/train-manage/scalar.vue @@ -952,8 +952,10 @@ export default { } if ( addFlag && - parma.value[1] >= sampleObject.zoomData[0] && - parma.value[1] <= sampleObject.zoomData[1] + Math.ceil(parma.value[1] * 1000) / 1000 >= + sampleObject.zoomData[0] && + Math.floor(parma.value[1] * 1000) / 1000 <= + sampleObject.zoomData[1] ) { dataCount++; runArr.push(parma.seriesName);