ChordColor
Auto-generated from the config schema in the source — see the config guide for concepts. Provided by the circular-view plugin. View source.
A variant chord's color: a CSS color or jexl: callback in value for
every chord, or a field of the record whose values each take a range
color, with a key on the circle. svType paints the structural-variant
classes the variant displays paint. A string is the constant.
Example usage
{ type: 'ChordVariantDisplay', color: { field: 'svType' }, opacity: 0.45 }Config slots
A setting written to it replaces it whole, since its members are alternatives: a member left out returns to its default. Slot types (fileLocation, frozen, ...) are explained in the config slot types reference. Slots a base configuration contributes are listed here too, so this table is the whole surface.
| Slot | Description |
|---|---|
valuecolor = 'rgba(255,133,0,0.32)' | A CSS color, or a jexl callback over feature returning one, for every chord.callback args: feature |
fieldfeatureField = '' | a record field, svType say, or a jexl expression over feature, whose values each paint one range color with a key |
scalemaybeStringEnum | none paints value and keeps the field for a switch back; categorical a range color per value of field; threshold a range color per interval between the cut points in domain; unset follows field |
domainstringArray of strings or numbers = [] | the values that take the range first, in order; under threshold, the ascending cut points, a value on a cut taking the interval above it |
rangecolorArray = [] | CSS colors the domain takes, in order, continuing into the default palette past its end; under threshold one per interval, one more than the cuts |
unknownmaybeColor | color for a value missing from domain: unset takes the next palette color where the display deals one, a color paints that color, "" adds no color from this setting, so a row keeps the color it already has, a variant cell takes the alt hue and a feature the no-value grey |
labelsstringArray of strings or numbers = [] | key label for each domain value, one each in order, or under threshold for each interval from the lowest; a value past the end of the list shows its name |
titlemaybeString | key title; unset keeps the display's own heading, "" draws none |