Function: sortTimeSeriesAscending()
sortTimeSeriesAscending(
xData,yDataMap,yFields):object
Sorts time-series data in ascending chronological order while preserving the correlation between each x value and its y values. Non-date category strings are intentionally left in their source order.
Parameters
Section titled “Parameters”(string | number)[]
yDataMap
Section titled “yDataMap”Record<string, (string | number)[]>
yFields
Section titled “yFields”string[]
Returns
Section titled “Returns”object
xData: (
string|number)[]
yDataMap
Section titled “yDataMap”yDataMap:
Record<string, (string|number)[]>