Class: DiscreteMeasure

DiscreteMeasure()

Represents categorical field subtype.

Constructor

new DiscreteMeasure()

Source:

Extends

Methods

defAggFn() → {function}

Getter for aggregation function of the field.
Inherited From:
Source:
Returns:
Returns aggregation function of the field.
Type
function

domain() → {Array}

Returns the domain for the measure field.
Inherited From:
Source:
Returns:
Returns min and max values from measure values.
Type
Array

numberFormat() → {string}

Getter for number format value of the field.
Inherited From:
Source:
Returns:
Returns number format of the field.
Type
string

parse(val) → {string}

A hook which is called for every entry(cell) of the column.
Parameters:
Name Type Description
val * The current entry present in the column while iteration.
Overrides:
Source:
To Do:
  • Fix the null data e.g. undefined or null etc.
Returns:
Returns the string representation of the value.
Type
string

scale() → {string}

Getter for scale value of the field.
Inherited From:
Source:
Returns:
Returns scale of the field.
Type
string

unit() → {string}

Getter for unit value of the field.
Inherited From:
Source:
Returns:
Returns unit of the field.
Type
string