@graphty/graphty-element / session / LegendReading
Interface: LegendReading ​
Defined in: graphty-element/src/session/styles/legend.ts:113
What a higher value means on the drawing, as a fact for a legend to put in its own words.
code names the fact and params carries its parts, so an application writes the sentence ("Darker means more Influence", with the field's words from LegendBlock.field) in its own language and voice.
Properties ​
code ​
readonlycode:"legend.higher"
Defined in: graphty-element/src/session/styles/legend.ts:115
A higher value of field is drawn further in direction on channel.
params ​
readonlyparams:object
Defined in: graphty-element/src/session/styles/legend.ts:117
The parts of the fact.
channel ​
readonlychannel:Channel
The channel the block describes.
direction ​
readonlydirection:"darker"|"lighter"|"larger"|"smaller"
Which way a higher value moves the paint: "darker" or "lighter" for a colour (by the luminance of the colours painted at the two ends of the domain), "larger" or "smaller" for a number such as a size, a width or an opacity.
field ​
readonlyfield:string
The column path the encoding reads.