mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-02 17:13:33 +01:00
fix(viewers): summary row as the table's last row, identifiers left out
The CSV summary row read as a floating card: rounded, a repeated "Avg" label in every cell, distinct counts under text columns and an average of the seed column. - The footer follows the column grid: square edges, a 2px top rule and the header's solid fill. It stays at the bottom of the scroll area, which no longer has vertical padding, so no rows show past it; a short table ends on it. - One "Average" select in the first column (or the row-number column) sets the aggregate for every numeric column. Cells show only the value, right-aligned, semibold. A column can override it from its menu, marked by a small label in its cell. - Text, date and identifier columns are empty in the footer; their distinct counts stay in the column menu. - Identifiers (seed, id, run, fold, index, year by name, or small consecutive whole numbers that repeat) are left out of the summary, group averages and default charts. "Treat as number" in the column menu brings one back (#table:num=seed). - Markdown and notebook tables get the same footer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
43e92bef53
commit
4fc3a8b2df
11 files changed
+231
-148
No files matched your search
@@ -11,8 +11,7 @@ export const MAX_SERIES = { bar: 4, line: 4, scatter: 3 };
|
||||
export const MAX_BARS = 40;
|
||||
export const MAX_POINTS = 2000;
|
||||
|
||||
const ID_LIKE = /^(?:seed|id|run|fold|trial|rep|repeat|index|idx|#|no\.?|row)s?$/i;
|
||||
const isIdLike = (column) => column.type === "number" && ID_LIKE.test(column.name.trim());
|
||||
const isIdLike = (column) => column.type === "number" && !!column.identifier;
|
||||
|
||||
// The default chart: a bar of the first measure by the first text column (the
|
||||
// group column once grouped); a line when the x axis is a date or a number.
|
||||
|
||||
Reference in new issue
Block a user