Added code to allow displaying only one metric data plot at a time