(columnStats)
| 82 | } |
| 83 | |
| 84 | export function inferBestNumericColumns(columnStats) { |
| 85 | const numericColumns = buildNumericColumnList(columnStats); |
| 86 | if (numericColumns.length >= 3) { |
| 87 | return numericColumns.slice(0, 3); |
| 88 | } |
| 89 | const fallback = columnStats.map((column) => column.name); |
| 90 | return [...numericColumns, ...fallback.filter((name) => !numericColumns.includes(name))].slice(0, 3); |
| 91 | } |
no test coverage detected