lib/Models/TableStyle.js
function(options) {
  options = defaultValue(options, defaultValue.EMPTY_OBJECT);

  TableColumnStyle.call(this, options);

  /**
   * The name of the variable (column) to be used for region mapping.
   * @type {String}
   */
  this.regionVariable = options.regionVariable;

  /**
   * The identifier of a region type, as used by RegionProviderList.
   * @type {String}
   */
  this.regionType = options.regionType;

  /**
   * The name of the default variable (column) containing data to be used for scaling and coloring.
   * @type {String}
   */
  this.dataVariable = options.dataVariable;

  /**
   * The column name or index to use as the time column. Defaults to the first one found. Pass null for none.
   * Pass an array of two, eg. [0, 1], to provide both start and end date columns.
   * @type {String|Integer|String[]|Integer[]|null}
   */
  this.timeColumn = options.timeColumn;

  /**
   * The column name or index to use as the time column. Defaults to the first one found. Pass null for none.
   * Pass an array of two, eg. [0, 1], to provide both start and end date columns.
   * @type {String|Integer}
   */
  this.xAxis = options.xAxis;

  /**
   * Column-specific styling, with the format { columnIdentifier1: tableColumnStyle1, columnIdentifier2: tableColumnStyle2, ... },
   * where columnIdentifier is either the name or the column index (zero-based).
   * @type {Object}
   */
  this.columns = objectToTableColumnStyle(options, []); // If any promises are created (thanks to colorPalette), they are lost here.
}
function(options) {
  options = defaultValue(options, defaultValue.EMPTY_OBJECT);

  TableColumnStyle.call(this, options);

  /**
   * The name of the variable (column) to be used for region mapping.
   * @type {String}
   */
  this.regionVariable = options.regionVariable;

  /**
   * The identifier of a region type, as used by RegionProviderList.
   * @type {String}
   */
  this.regionType = options.regionType;

  /**
   * The name of the default variable (column) containing data to be used for scaling and coloring.
   * @type {String}
   */
  this.dataVariable = options.dataVariable;

  /**
   * The column name or index to use as the time column. Defaults to the first one found. Pass null for none.
   * Pass an array of two, eg. [0, 1], to provide both start and end date columns.
   * @type {String|Integer|String[]|Integer[]|null}
   */
  this.timeColumn = options.timeColumn;

  /**
   * The column name or index to use as the time column. Defaults to the first one found. Pass null for none.
   * Pass an array of two, eg. [0, 1], to provide both start and end date columns.
   * @type {String|Integer}
   */
  this.xAxis = options.xAxis;

  /**
   * Column-specific styling, with the format { columnIdentifier1: tableColumnStyle1, columnIdentifier2: tableColumnStyle2, ... },
   * where columnIdentifier is either the name or the column index (zero-based).
   * @type {Object}
   */
  this.columns = objectToTableColumnStyle(options, []); // If any promises are created (thanks to colorPalette), they are lost here.
}
function ( options ) { options = defaultValue ( options , defaultValue . EMPTY_OBJECT ) ; TableColumnStyle . call ( this , options ) ; /**
   * The name of the variable (column) to be used for region mapping.
   * @type {String}
   */ this . regionVariable = options . regionVariable ; /**
   * The identifier of a region type, as used by RegionProviderList.
   * @type {String}
   */ this . regionType = options . regionType ; /**
   * The name of the default variable (column) containing data to be used for scaling and coloring.
   * @type {String}
   */ this . dataVariable = options . dataVariable ; /**
   * The column name or index to use as the time column. Defaults to the first one found. Pass null for none.
   * Pass an array of two, eg. [0, 1], to provide both start and end date columns.
   * @type {String|Integer|String[]|Integer[]|null}
   */ this . timeColumn = options . timeColumn ; /**
   * The column name or index to use as the time column. Defaults to the first one found. Pass null for none.
   * Pass an array of two, eg. [0, 1], to provide both start and end date columns.
   * @type {String|Integer}
   */ this . xAxis = options . xAxis ; /**
   * Column-specific styling, with the format { columnIdentifier1: tableColumnStyle1, columnIdentifier2: tableColumnStyle2, ... },
   * where columnIdentifier is either the name or the column index (zero-based).
   * @type {Object}
   */ this . columns = objectToTableColumnStyle ( options , [ ] ) ; // If any promises are created (thanks to colorPalette), they are lost here. }
A set of properties that define how a table, such as a CSV file, should be displayed.
If not set explicitly, many of these properties will be given default or guessed values elsewhere,
such as in CsvCatalogItem.

@alias TableStyle
@constructor
@extends TableColumnStyle

@param {Object} [options] The values of the properties of the new instance. Options may include all those options found in TableColumnStyle, plus:
@param {String} [options.regionVariable] The name of the variable (column) to be used for region mapping.
@param {String} [options.regionType] The identifier of a region type, as used by RegionProviderList.
@param {String} [options.dataVariable] The name of the default variable (column) containing data to be used for scaling and coloring.
@param {String|Integer|null} [options.timeColumn] The column name or index to use as the time column. Defaults to the first one found.
Pass null for none. Pass an array of two, eg. [0, 1], to provide both start and end date columns.
@param {String|Integer} [options.xAxis] The column name or index to use as the x-axis, if charted. Defaults to the first one found.
@param {Object} [options.columns] Column-specific styling, with the format { columnIdentifier1: tableColumnStyle1, columnIdentifier2: tableColumnStyle2, ... },
where columnIdentifier is either the name or the column index (zero-based).
A set of properties that define how a table such as a CSV file should be displayed . If not set explicitly many of these properties will be given default or guessed values elsewhere such as in CsvCatalogItem .