Functions
buildDataSet
- buildDataSet(data: readonly any[], properties: string[]): Record<string, any[]>
-
Parameters
-
data: readonly any[]
-
properties: string[]
Returns Record<string, any[]>
buildItemByIndex
- buildItemByIndex(index: number, dataset: Record<string, any[]>): Record<string, any>
-
Parameters
-
index: number
-
dataset: Record<string, any[]>
Returns Record<string, any>
Entity
buildSeries
- buildSeries(takeValue: (data: Record<string, any>) => any, data: readonly Record<string, any>[]): any[]
-
Parameters
-
takeValue: (data: Record<string, any>) => any
-
- (data: Record<string, any>): any
-
Parameters
-
data: Record<string, any>
Returns any
-
data: readonly Record<string, any>[]
Returns any[]
Dataset builder
A classic table stores data as rows. The function flips the table and returns a dictionary that stores data in columns