refactored qualified hideMetrics() function - dynamic resizing of d3 canvas
changed hide metrics to safe metrics