MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / categoryScale

Function categoryScale

telemetry-dashboard/public/theme.js:179–188  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

177
178/** A category or time axis: no grid at all, so the marks carry the chart. */
179export 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

Callers 2

lineChartFunction · 0.90
barChartFunction · 0.90

Calls 1

scaleFunction · 0.85

Tested by

no test coverage detected