Skip to content

Function: inferChartType()

inferChartType(rows, columns): ChartInference | null

Infer the best chart type for the given Genie query result. Returns null when the data is not suitable for charting.

Record<string, unknown>[]

GenieColumnMeta[]

ChartInference | null