Traits / MarkRect
MarkRect
Heatmap authoring over the existing MarkRect renderer
Generated from @oods/foundry 0.10.1
- Group
- viz.mark
- Maturity
- not declared
- Contexts
- detail, form
Fields it adds
This trait adds no fields.
What it shows in each context
Parameters
chartobject- Optional read-only chart declaration binding existing domain fields; projects into supported detail and dashboard views.
titlestring- Title for the bound chart and its accessible figure.
descriptionstring- Description of the bound chart measurements and units.
renderIntentstring- JSON-encoded Cartesian viz.render input fragment; data rows are supplied by the consumer.
previewSvgstring- Static SVG returned by viz.render for the authored sample.
Objects that use it
No shipped object uses this trait.
The trait file
traits/viz/mark-rect.trait.yaml
{
"trait": {
"name": "MarkRect",
"version": "0.1.0",
"description": "Heatmap authoring over the existing MarkRect renderer",
"category": "viz.mark",
"tags": [
"viz",
"authoring"
]
},
"parameters": [
{
"name": "chart",
"type": "object",
"required": false,
"description": "Optional read-only chart declaration binding existing domain fields; projects into supported detail and dashboard views."
},
{
"name": "title",
"type": "string",
"required": false,
"description": "Title for the bound chart and its accessible figure."
},
{
"name": "description",
"type": "string",
"required": false,
"description": "Description of the bound chart measurements and units."
},
{
"name": "renderIntent",
"type": "string",
"required": false,
"default": "{}",
"description": "JSON-encoded Cartesian viz.render input fragment; data rows are supplied by the consumer."
},
{
"name": "previewSvg",
"type": "string",
"required": false,
"description": "Static SVG returned by viz.render for the authored sample."
}
],
"schema": {},
"semantics": {},
"view_extensions": {
"form": [
{
"component": "VizHeatmapControls",
"position": "top",
"props": {
"intentParameter": "renderIntent"
}
}
],
"detail": [
{
"component": "VizHeatmapPreview",
"position": "top",
"props": {
"svgParameter": "previewSvg"
}
}
]
},
"tokens": {},
"metadata": {
"regionsUsed": [
"form",
"detail"
]
}
}