added data buffering in metricvisualizer