lib/Map/TableStructure.js
function getColumnOptions(name, tableStructure, columnNumber) {
  var columnOptions = defaultValue.EMPTY_OBJECT;
  if (defined(tableStructure.columnOptions)) {
    columnOptions = defaultValue(
      tableStructure.columnOptions[name],
      defaultValue(
        tableStructure.columnOptions[columnNumber],
        defaultValue.EMPTY_OBJECT
      )
    );
  }
  var niceName = defaultValue(columnOptions.name, name);
  var type = getVarTypeFromString(columnOptions.type);
  var format = defaultValue(columnOptions.format, format);
  var displayDuration = defaultValue(
    columnOptions.displayDuration,
    tableStructure.displayDuration
  );
  var replaceWithNullValues = defaultValue(
    columnOptions.replaceWithNullValues,
    tableStructure.replaceWithNullValues
  );
  var replaceWithZeroValues = defaultValue(
    columnOptions.replaceWithZeroValues,
    tableStructure.replaceWithZeroValues
  );
  var colOptions = {
    tableStructure: tableStructure,
    displayVariableTypes: tableStructure.displayVariableTypes,
    unallowedTypes: tableStructure.unallowedTypes,
    displayDuration: displayDuration,
    replaceWithNullValues: replaceWithNullValues,
    replaceWithZeroValues: replaceWithZeroValues,
    id: name,
    type: type,
    units: columnOptions.units,
    format: columnOptions.format,
    active: columnOptions.active,
    chartLineColor: columnOptions.chartLineColor,
    yAxisMin: columnOptions.yAxisMin,
    yAxisMax: columnOptions.yAxisMax
  };
  return [niceName, colOptions];
}
function getColumnOptions(name, tableStructure, columnNumber) {
  var columnOptions = defaultValue.EMPTY_OBJECT;
  if (defined(tableStructure.columnOptions)) {
    columnOptions = defaultValue(
      tableStructure.columnOptions[name],
      defaultValue(
        tableStructure.columnOptions[columnNumber],
        defaultValue.EMPTY_OBJECT
      )
    );
  }
  var niceName = defaultValue(columnOptions.name, name);
  var type = getVarTypeFromString(columnOptions.type);
  var format = defaultValue(columnOptions.format, format);
  var displayDuration = defaultValue(
    columnOptions.displayDuration,
    tableStructure.displayDuration
  );
  var replaceWithNullValues = defaultValue(
    columnOptions.replaceWithNullValues,
    tableStructure.replaceWithNullValues
  );
  var replaceWithZeroValues = defaultValue(
    columnOptions.replaceWithZeroValues,
    tableStructure.replaceWithZeroValues
  );
  var colOptions = {
    tableStructure: tableStructure,
    displayVariableTypes: tableStructure.displayVariableTypes,
    unallowedTypes: tableStructure.unallowedTypes,
    displayDuration: displayDuration,
    replaceWithNullValues: replaceWithNullValues,
    replaceWithZeroValues: replaceWithZeroValues,
    id: name,
    type: type,
    units: columnOptions.units,
    format: columnOptions.format,
    active: columnOptions.active,
    chartLineColor: columnOptions.chartLineColor,
    yAxisMin: columnOptions.yAxisMin,
    yAxisMax: columnOptions.yAxisMax
  };
  return [niceName, colOptions];
}
function getColumnOptions ( name , tableStructure , columnNumber ) { var columnOptions = defaultValue . EMPTY_OBJECT ; if ( defined ( tableStructure . columnOptions ) ) { columnOptions = defaultValue ( tableStructure . columnOptions [ name ] , defaultValue ( tableStructure . columnOptions [ columnNumber ] , defaultValue . EMPTY_OBJECT ) ) ; } var niceName = defaultValue ( columnOptions . name , name ) ; var type = getVarTypeFromString ( columnOptions . type ) ; var format = defaultValue ( columnOptions . format , format ) ; var displayDuration = defaultValue ( columnOptions . displayDuration , tableStructure . displayDuration ) ; var replaceWithNullValues = defaultValue ( columnOptions . replaceWithNullValues , tableStructure . replaceWithNullValues ) ; var replaceWithZeroValues = defaultValue ( columnOptions . replaceWithZeroValues , tableStructure . replaceWithZeroValues ) ; var colOptions = { tableStructure : tableStructure , displayVariableTypes : tableStructure . displayVariableTypes , unallowedTypes : tableStructure . unallowedTypes , displayDuration : displayDuration , replaceWithNullValues : replaceWithNullValues , replaceWithZeroValues : replaceWithZeroValues , id : name , type : type , units : columnOptions . units , format : columnOptions . format , active : columnOptions . active , chartLineColor : columnOptions . chartLineColor , yAxisMin : columnOptions . yAxisMin , yAxisMax : columnOptions . yAxisMax } ; return [ niceName , colOptions ] ; }
Return column options object, using defaults where appropriate.

@param  {String} name Name of column
@param  {TableStructure} tableStructure TableStructure to use to calculate values.
@param  {Int} columnNumber Which column should be used as template for default column options
@return {Object} Column options that TableColumn's constructor understands
Return column options object using defaults where appropriate .