Constructor
(private) new JSONDataWrapper(json)
Parameters:
Name | Type | Description |
---|---|---|
json |
JSON | The JSON data, as a string or object |
- Implements:
- Source:
- To Do:
-
- document format
Methods
numSeries() → {integer}
Returns the number of series in the underlying data
- Implements:
- Source:
Returns:
The number of series
- Type
- integer
seriesLength(series) → {integer}
What is the length of a series?
Parameters:
Name | Type | Description |
---|---|---|
series |
index | The series |
- Implements:
- Source:
Returns:
The number of data in the series
- Type
- integer
seriesMax(series) → {Number}
What is the maximum value in a given series?
Parameters:
Name | Type | Description |
---|---|---|
series |
index | The series number |
- Implements:
- Source:
Returns:
The maximum value in the series
- Type
- Number
seriesMin(series) → {Number}
What is the minimum value in a given series?
Parameters:
Name | Type | Description |
---|---|---|
series |
index | The series number |
- Implements:
- Source:
Returns:
The minimum value in the series
- Type
- Number
seriesNames() → {Array.<string>}
Get a list of the underlying data series names
- Implements:
- Source:
Returns:
An array of the series names
- Type
- Array.<string>
seriesValue(series, index) → {Number}
Get value of specific datum
Parameters:
Name | Type | Description |
---|---|---|
series |
index | The series number |
index |
index | The row number |
- Implements:
- Source:
- To Do:
-
- rename `index` to `row`?
Returns:
the datum
- Type
- Number