                "<td>#{ dspConf.html }:</td>" +
                "<td>#{ valueFormatter(value) }</td>" +
              "</tr>"
-
-           generateTooltip = (obj) ->
+           
+           # Return the formatter function.
+           (obj) ->
              # The charting object is the data series object,
              # for either the FXL or FXR ktrans. In either case,
              # the modeling parameter result is in obj.data,

             "<table>" +
               rows.join("\n") +
             "</table>"
         else
           dspConf = Modeling.properties[paramKey]
           generateTooltip = (obj) ->
             # The value to display.
             value = obj.series[0].value
             "#{ dspConf.html }: #{ valueFormatter(value) }"
          
          # Return the generator function.
          generateTooltip
      
      # Configures the D3 chart with the given format. The format is an
      # object in the form {label: string, data: array}

        # The smallest value precision that captures at least
        # one non-zero digit for all non-zero values.
        precision = Chart.minPrecision(values)
        # The tooltip content generator.
        generateTooltip = tooltipGenerator(paramKey, precision)
        # The tooltip and Y tick formatter depend on the precision.
        mixin =
          options:
