Class: ColorItem
A single color item definition specifying the scale on which the color is based and the value / field
to which to apply the color.
classDiagram
class ColorItem
click ColorItem href "../ColorItem"
ColorItem : field
ColorItem : scale
Slots
Name | Cardinality and Range | Description | Inheritance |
---|---|---|---|
scale | 1 String |
The color scale | direct |
field | 1 String |
The value or field to which to apply the color | direct |
Usages
used by | used in | type | used |
---|---|---|---|
ImageEncodeEnter | fill | range | ColorItem |
LabelEncodeEnter | stroke | range | ColorItem |
LabelEncodeEnter | fill | any_of[range] | ColorItem |
PointsEncodeEnter | stroke | any_of[range] | ColorItem |
PointsEncodeEnter | fill | any_of[range] | ColorItem |
PathEncodeEnter | fill | any_of[range] | ColorItem |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/scverse/vega-scverse/specification
Mappings
Mapping Type | Mapped Value |
---|---|
self | vega_scverse:ColorItem |
native | vega_scverse:ColorItem |
LinkML Source
Direct
name: ColorItem
description: 'A single color item definition specifying the scale on which the color
is based and the value / field
to which to apply the color.'
from_schema: https://w3id.org/scverse/vega-scverse/specification
attributes:
scale:
name: scale
description: The color scale.
from_schema: https://w3id.org/scverse/vega-scverse/marks
domain_of:
- Axis
- ColorItem
- AxisItem
- ConditionalFillUpdate
required: true
pattern: ^color_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
field:
name: field
description: The value or field to which to apply the color.
from_schema: https://w3id.org/scverse/vega-scverse/marks
domain_of:
- AggregateTransform
- SpreadTransform
- ContinuousColorDomain
- ColorItem
- AxisItem
- ConditionalFillUpdate
range: string
required: true
Induced
name: ColorItem
description: 'A single color item definition specifying the scale on which the color
is based and the value / field
to which to apply the color.'
from_schema: https://w3id.org/scverse/vega-scverse/specification
attributes:
scale:
name: scale
description: The color scale.
from_schema: https://w3id.org/scverse/vega-scverse/marks
alias: scale
owner: ColorItem
domain_of:
- Axis
- ColorItem
- AxisItem
- ConditionalFillUpdate
range: string
required: true
pattern: ^color_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
field:
name: field
description: The value or field to which to apply the color.
from_schema: https://w3id.org/scverse/vega-scverse/marks
alias: field
owner: ColorItem
domain_of:
- AggregateTransform
- SpreadTransform
- ContinuousColorDomain
- ColorItem
- AxisItem
- ConditionalFillUpdate
range: string
required: true