View as Markdown

API reference: @salmonui/charts/heat-map

HeatMapLegendOptionsinterface

import type { HeatMapLegendOptions } from '@salmonui/charts/heat-map';
interface HeatMapLegendOptions {
    readonly position?: 'top' | 'bottom' | 'start' | 'end' | undefined;
    readonly title?: string | undefined;
    readonly labels?: 'all' | 'edge' | 'none' | undefined;
    readonly format?: ((value: number) => string) | undefined;
    readonly toggle?: boolean | undefined;
}
HeatMapLegendOptions members (5)
NameSignatureDescription
positionoptionalreadonly position?: 'top' | 'bottom' | 'start' | 'end' | undefined;
titleoptionalreadonly title?: string | undefined;
labelsoptionalreadonly labels?: 'all' | 'edge' | 'none' | undefined;
formatoptionalreadonly format?: ((value: number) => string) | undefined;
toggleoptionalreadonly toggle?: boolean | undefined;

Steps legend items toggle cells of that step. Default true.