WiggleEncoding
Auto-generated from the config schema in the source. See the config guide for concepts. Provided by the wiggle plugin. View source.
The quantitative display's encoding, the channels its marks paint
through.
Example usage
{ type: 'LinearWiggleDisplay', encoding: { color: { value: 'darkgreen' } } }The bins' maxima on a log axis, with a labelled line at 30:
{
type: 'LinearWiggleDisplay',
encoding: {
y: {
field: 'maxScore',
scale: { type: 'log' },
rules: [{ value: 30, label: '2 copies' }],
},
},
}Config slots
A setting written to it names members one by one: a member left out stays as it is, and null resets one. 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 |
|---|---|
| color WiggleColor |
One CSS color in value, or the score through a scale, with a key. |
| y YFieldChannel |
The value axis, a YFieldChannel: field, the summary or column each mark plots, and the scale, axis and rules it is drawn through. scale.fenceQuantile starts at 0.99, fencing a spike. The density rendering draws no rule and does not widen to one: it spends color on the score and has no axis to rule. |
| size WiggleSize |
A point's diameter in px. The track menu's Point size writes it. It is a px diameter, not Vega-Lite's area. |
| strokeWidth WiggleSize |
A line's width in px, Vega-Lite's stroke width. The track menu's Line width writes it. |
Related links
- Config guide: Quantitative track