SPB Git

spb/rareindex

Public
317 B · 8 lines typescript
1import { divergingColor } from './scale';23/** Inline style for heat-table cells (diverging change). */4export function heatStyle(change: number | null | undefined, limit = 0.1): React.CSSProperties {5  if (change === null || change === undefined) return {};6  return { background: divergingColor(change, limit) };7}8
Files · d93392862678cbf30e175697fcb812bc4ff0b5a7
Menu

Theme