View as Markdown

API reference: @salmonui/charts/heat-map

HeatMapColorScaleinterface

import type { HeatMapColorScale } from '@salmonui/charts/heat-map';
interface HeatMapColorScale {
    readonly kind?: 'gradient' | 'steps' | undefined;
    readonly stops?: readonly HeatMapStop[] | undefined;
    readonly domain?: 'all' | 'row' | 'column' | undefined;
    readonly outOfRange?: string | undefined;
}
HeatMapColorScale members (4)
NameSignatureDescription
kindoptionalreadonly kind?: 'gradient' | 'steps' | undefined;
stopsoptionalreadonly stops?: readonly HeatMapStop[] | undefined;

Data values (domain all) or positions 0..1 (domain row / column).

domainoptionalreadonly domain?: 'all' | 'row' | 'column' | undefined;

Normalize per table, row or column. Default all.

outOfRangeoptionalreadonly outOfRange?: string | undefined;

Color of values outside the stop range (steps); default the end stops.