plot icon indicating copy to clipboard operation
plot copied to clipboard

Hide tick labels when an ordinal x or y has a high-cardinality domain.

Open Fil opened this issue 5 years ago • 1 comments

Per https://github.com/observablehq/plot/pull/75#issuecomment-751497435 we want to hide the axis if it has much too many ticks.

Fil avatar Dec 23 '20 16:12 Fil

Another thought here is that we could use tickRotate to default to vertical ticks on the x-axis when there are too many ticks.

mbostock avatar Jan 19 '22 17:01 mbostock

Related #1789 #1790 which addresses this for time series (which is not the only case, but is a common one — and one where you can typically drop labels without losing meaning, unlike ordinal data in general).

mbostock avatar Aug 09 '23 20:08 mbostock