mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
Chart builder: data-aware defaults, one-click hint fixes, canvas preview, fullscreen modal
This commit is contained in:
@@ -301,8 +301,10 @@ trivially testable. The caller passes `null` for URL and non-tabular datasets.
|
||||
### 3.3 Column stats: cardinality + numeric extent
|
||||
|
||||
Alongside the display type, each column carries the two data-shape signals the
|
||||
**Chart Builder** needs for its data-aware Tier-B hints (spec §06; see
|
||||
`chart-builder.ts` `builderWarnings`):
|
||||
**Chart Builder** needs for its data-aware Tier-B hints (`chart-builder.ts`
|
||||
`builderWarnings`) **and** for its default pre-population (`smartDefaultEncodings`
|
||||
prefers a low-cardinality category over a high-cardinality key, so the builder never
|
||||
opens on a degenerate chart; spec §06):
|
||||
|
||||
- **`distinct`** — the count of distinct non-empty values **in the sample**,
|
||||
counted only up to `DISTINCT_CAP` (50). Past the cap the exact number stops
|
||||
|
||||
Reference in New Issue
Block a user