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 · f83c5da5cb0efde9d75cc62be156c52ca2afe623
Menu

Theme