Class: ConditionalColorUpdate
Update the color if a value is above or below a given threshold.
URI: vega_scverse:ConditionalColorUpdate
classDiagram
class ConditionalColorUpdate
click ConditionalColorUpdate href "../ConditionalColorUpdate"
ConditionalColorUpdate : test
ConditionalColorUpdate : value
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| test | 1 String |
The condition to test on, e | direct |
| value | 1 String |
The color as RGB hex string | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| MarkEncodeUpdate | fill | any_of[range] | ConditionalColorUpdate |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/scverse/vega-scverse/specification
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | vega_scverse:ConditionalColorUpdate |
| native | vega_scverse:ConditionalColorUpdate |
LinkML Source
Direct
name: ConditionalColorUpdate
description: Update the color if a value is above or below a given threshold.
from_schema: https://w3id.org/scverse/vega-scverse/specification
attributes:
test:
name: test
description: "The condition to test on, e.g. 'datum.instance_id) < 3.0'. MUST\
\ be an expression starting with \ndatum.<column_name> then a space followed\
\ by <=,>=,< or> a space again and then any float or integer value."
from_schema: https://w3id.org/scverse/vega-scverse/encode
domain_of:
- ConditionalFillUpdate
- NAColorUpdate
- ConditionalColorUpdate
required: true
pattern: ^datum\.[A-Za-z_][A-Za-z0-9_]*\s*(?:<=|>=|<|>)\s*-?\d+(?:\.\d+)?$
value:
name: value
description: The color as RGB hex string.
from_schema: https://w3id.org/scverse/vega-scverse/encode
domain_of:
- PositionItem
- TextItem
- baselineItem
- FontItem
- FontSizeItem
- FontWeightItem
- FontStyleItem
- RGBHexItem
- PositiveFloatObject
- CircleShapeObject
- OpacityObject
- HorizontalAlignObject
- BaseLineObject
- NAColorUpdate
- ConditionalColorUpdate
required: true
pattern: ^#([A-Fa-f0-9]{6})$
Induced
name: ConditionalColorUpdate
description: Update the color if a value is above or below a given threshold.
from_schema: https://w3id.org/scverse/vega-scverse/specification
attributes:
test:
name: test
description: "The condition to test on, e.g. 'datum.instance_id) < 3.0'. MUST\
\ be an expression starting with \ndatum.<column_name> then a space followed\
\ by <=,>=,< or> a space again and then any float or integer value."
from_schema: https://w3id.org/scverse/vega-scverse/encode
alias: test
owner: ConditionalColorUpdate
domain_of:
- ConditionalFillUpdate
- NAColorUpdate
- ConditionalColorUpdate
range: string
required: true
pattern: ^datum\.[A-Za-z_][A-Za-z0-9_]*\s*(?:<=|>=|<|>)\s*-?\d+(?:\.\d+)?$
value:
name: value
description: The color as RGB hex string.
from_schema: https://w3id.org/scverse/vega-scverse/encode
alias: value
owner: ConditionalColorUpdate
domain_of:
- PositionItem
- TextItem
- baselineItem
- FontItem
- FontSizeItem
- FontWeightItem
- FontStyleItem
- RGBHexItem
- PositiveFloatObject
- CircleShapeObject
- OpacityObject
- HorizontalAlignObject
- BaseLineObject
- NAColorUpdate
- ConditionalColorUpdate
range: string
required: true
pattern: ^#([A-Fa-f0-9]{6})$