FooterScale

A mapping from values to colour or size, which a scale row keys.

@internote/canvas-sdkType
import { FooterScale } from '@internote/canvas-sdk';

Every field is part of the mapping, so two environments contributing equal scales are drawing the same thing, and the host shows one row for both.

  • ramp: a hue's or a ramp's run from lo to hi; invert flips the colours, never the numbers.
  • wheel: domain colouring, the argument round the hue wheel from −π to π.
  • graded: several scales, one per category, over one window of readings.
  • size: a quantity drawn as a mark's size, from lo to hi; drawn is the mark's size at each end, in the picture's own units (a disc's radius, a stroke's width in pixels), so the key draws them in the picture's proportion.

Declared in packages/canvas-sdk/src/footer/index.ts:139.

Last updated