API reference: @salmonui/charts/tree-map
TreeMapColorScaleinterface
import type { TreeMapColorScale } from '@salmonui/charts/tree-map';interface TreeMapColorScale {
readonly kind: 'range' | 'value' | 'opacity';
readonly field?: string | undefined;
readonly stops: readonly TreeMapColorStop[];
}
| Name | Signature | Description |
|---|---|---|
kind | readonly kind: 'range' | 'value' | 'opacity'; | |
fieldoptional | readonly field?: string | undefined; | Record field the scale reads; default the weight. |
stops | readonly stops: readonly TreeMapColorStop[]; |