Fields it adds

This trait adds no fields.

What it shows in each context

form
VizScatterControls
detail
VizScatterPreview

Parameters

renderIntent string
JSON-encoded Cartesian viz.render input fragment; data rows are supplied by the consumer.
previewSvg string
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/scatter-plot.trait.yaml
{
  "trait": {
    "name": "ScatterPlot",
    "version": "0.1.0",
    "description": "Scatter authoring over the existing MarkPoint renderer",
    "category": "viz.pattern",
    "tags": [
      "viz",
      "authoring"
    ]
  },
  "parameters": [
    {
      "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": "VizScatterControls",
        "position": "top",
        "props": {
          "intentParameter": "renderIntent"
        }
      }
    ],
    "detail": [
      {
        "component": "VizScatterPreview",
        "position": "top",
        "props": {
          "svgParameter": "previewSvg"
        }
      }
    ]
  },
  "tokens": {},
  "metadata": {
    "regionsUsed": [
      "form",
      "detail"
    ]
  }
}