Constructor
new DateTime(name, data, schema)
Creates new DateTime field instance.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the field. |
data |
Array | An array containing the field data. |
schema |
Object | The schema for the field. |
- Source:
Extends
Methods
domain() → {Array}
Returns the domain for the dimension field.
- Inherited From:
- Source:
Returns:
Returns the unique values from dimension values.
- Type
- Array
parse(val) → {number}
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:
Returns:
Returns the total timestamps in millisecond.
- Type
- number
parsed(val) → {string}
Saves the cardinality of the dimensional values after parsing the data.
Parameters:
Name | Type | Description |
---|---|---|
val |
string | The parsed value. |
- Inherited From:
- Source:
Returns:
Returns the input val.
- Type
- string
subType() → {string}
Getter for subType value of the field.
- Source:
Returns:
Returns subType of the field.
- Type
- string