Log inGet started
Package

core.module

Newest version

README.md

core

The plain helpers every chartKit chart uses, with no UI and no state: fmt turns numbers into readable text ("16.7 ms", "12.3k"), niceTicks picks round axis ticks, decimate shrinks a long series to about two points per bucket while keeping each bucket's minimum and maximum (so a one-frame spike always survives), quickPercentile estimates a percentile from a sample, folded parses folded stacks ("a;b;c 123") into a flame-graph tree, and colour helpers (mix, alpha, luma) and text helpers (esc, fit, textWidth) round it out. Required by chartKit.kinds; call it directly when you want the maths without a chart.