 
     self
 
-  addThresholdVisualization = (variableX, variableY, showReferenceLine) ->
-    rendering =  createThresholdVisualization _metricFrame.metrics, variableX, variableY, showReferenceLine, (metric, index) ->
+  createThresholdVisualizationPane = (variableX, variableY, showReferenceLine) ->
+    rendering =  createThresholdVisualization _filteredMetrics, variableX, variableY, showReferenceLine, (metric, index) ->
       _.inspect
         content: createThresholdInspection _metricFrame.thresholdVariables, metric, index
         template: 'geyser'


    self

  configureVisualization = (caption, type, variableX, variableY, go) ->
    parameters =
      visualizationTypes: _visualizationTypes

      _visualizations.splice index, 1, newVisualization
    return

  createMetricsVisualizationPane = (variableX, variableY) ->
    rendering =  createMetricsVisualization _filteredMetrics, variableX, variableY, (metric) ->
      _.inspect
        content: createMetricInspection _metricFrame.metricVariables, metric
        template: 'geyser'
