MarkSize
Auto-generated config schema for the current JBrowse release — see the config guide for concepts. Provided by the marks plugin. View source.
Example usage
{ mark: 'point', encoding: { y: 'score', size: 7 } }{
mark: 'link',
encoding: { size: { field: 'score', scale: 'log', range: [1, 8] } },
}See the Config slots section below for all available configuration fields.
A mark's size in px, as color is its colour: a point's diameter, a rule's
thickness or a link's stroke. A number is the constant every instance
takes, and lands in value; a string is a feature field, and lands in
field, which a link reads through a linear or log scale into a px range,
so a score becomes a width the way a ramp makes it a colour.
Config slots
These slots go on a display entry: "displays": [{ "type": "MarkSize", ... }], or in the track's displayDefaults when this is its default display. 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 |
|---|---|
valuemaybeNumber | The px every instance takes: a point's diameter, a rule's thickness, a link's stroke where it reads no field. Unset is the mark's own, 4 for a point or a rule and 2 for a link. Writing size: 7 lands here. |
fieldfeatureField = '' | The feature field a link's width reads, or a jexl expression over feature. Empty draws every instance at value. Writing size: "score" lands here. |
scalestringEnum (linear, log) = 'linear' | How the value becomes a width: linear or log between domainMin and domainMax. |
domainMinmaybeNumber | The value the thinnest width stands at; unset, the loaded regions' own least. |
domainMaxmaybeNumber | The value the widest width stands at; unset, the loaded regions' own greatest. |
rangestringArray = [] | The px at each end of the domain, thinnest first. Empty is 1 to 6. |