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

Function valueScale

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

Source from the content-addressed store, hash-verified

164
165/** A value axis: hairline grid, clean ticks, always anchored at zero. */
166export function valueScale(extra = {}) {
167 return scale(
168 {
169 beginAtZero: true,
170 border: { color: AXIS },
171 grid: { color: GRID, drawTicks: false },
172 ticks: { color: MUTED, padding: 8, maxTicksLimit: 6, precision: 0 },
173 },
174 extra,
175 );
176}
177
178/** A category or time axis: no grid at all, so the marks carry the chart. */
179export function categoryScale(extra = {}) {

Callers 2

lineChartFunction · 0.90
barChartFunction · 0.90

Calls 1

scaleFunction · 0.85

Tested by

no test coverage detected