diff --git a/mindinsight/datavisual/data_transform/histogram_container.py b/mindinsight/datavisual/data_transform/histogram_container.py index c5478ee97a653a2610c177587e401fbd1240a1cc..a3e55f62339294f05ebf378943cfc6dab671cb79 100644 --- a/mindinsight/datavisual/data_transform/histogram_container.py +++ b/mindinsight/datavisual/data_transform/histogram_container.py @@ -42,7 +42,7 @@ class HistogramContainer: self._visual_min = self._min # default bin number self._visual_bins = 10 - self._count = self._msg.count + self._count = sum(bucket[2] for bucket in self._original_buckets) # Note that tuple is immutable, so sharing tuple is often safe. self._re_sampled_buckets = self._original_buckets