Type Alias: HighlightRule
HighlightRule = {
mode:"boolean"; } | {anchor?:"start"|"end"|"center";axis?:"x"|"y"|"radial";baseline?:number;channel:SubsetChannel;mode:"subset";shape?:"flow"|"ribbon"; } | {axis?:"x"|"y";mode:"custom";preset:CustomPreset;scale?: {a:number;fields: [string,string];k:number; }; }
Defined in: plots/partial-design.ts:44
Highlight of one mark family, as a plot declares it.
{ mode: 'boolean' }: the whole mark.{ mode: 'subset', channel }: the mark drawn with the subset's value onchannel.{ mode: 'custom', preset }: a ready-made metaphor (a plot's own one ishighlightas a function).
Union Members
Type Literal
{ mode: "boolean"; }
Type Literal
{ anchor?: "start" | "end" | "center"; axis?: "x" | "y" | "radial"; baseline?: number; channel: SubsetChannel; mode: "subset"; shape?: "flow" | "ribbon"; }
anchor?
optionalanchor?:"start"|"end"|"center"
Side length grows from: top/left (start), bottom/right (end), or center.
axis?
optionalaxis?:"x"|"y"|"radial"
Axis of length and position.
baseline?
optionalbaseline?:number
Coordinate of the value 0 for position on x or y.
channel
channel:
SubsetChannel
mode
mode:
"subset"
shape?
optionalshape?:"flow"|"ribbon"
Path of a band: a flow (flow, as a Sankey link) or a ribbon (ribbon, as a chord).
Type Literal
{ axis?: "x" | "y"; mode: "custom"; preset: CustomPreset; scale?: { a: number; fields: [string, string]; k: number; }; }
axis?
optionalaxis?:"x"|"y"
Axis of members.
mode
mode:
"custom"
preset
preset:
CustomPreset
scale?
optionalscale?:object
members: coordinate of a value, a + k·value, and the two fields the mark spans.
scale.a
a:
number
scale.fields
fields: [
string,string]
scale.k
k:
number