MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / getAxisTitleFontSize

Function getAxisTitleFontSize

src/utils/axisLabelStyling.ts:21–26  ·  view source on GitHub ↗
(baseFontSize: number)

Source from the content-addressed store, hash-verified

19 * Calculates the font size for axis titles (larger than regular tick labels).
20 */
21export function getAxisTitleFontSize(baseFontSize: number): number {
22 return Math.max(
23 baseFontSize + 1,
24 Math.round(baseFontSize * 1.15)
25 );
26}
27
28/**
29 * Applies consistent styling to an axis label span element.

Callers 2

renderFunction · 0.90
addAxisLabelsToOverlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected