(extra = {})
| 177 | |
| 178 | /** A category or time axis: no grid at all, so the marks carry the chart. */ |
| 179 | export function categoryScale(extra = {}) { |
| 180 | return scale( |
| 181 | { |
| 182 | border: { color: AXIS }, |
| 183 | grid: { display: false }, |
| 184 | ticks: { color: MUTED, padding: 6, autoSkipPadding: 12, maxRotation: 0 }, |
| 185 | }, |
| 186 | extra, |
| 187 | ); |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Crosshair-style reading on anything plotted against days: hovering anywhere in |