viz.box
Box plot of a value per category.
- Kind:
standard - Network: no
| Name | Type | Required | Default | Description |
|---|
table | file (Parquet) | yes | | Table to chart (Parquet or CSV). |
x | string | yes | | Category column. |
y | string | yes | | Value column. |
color | string | no | blank | Column to colour boxes by. |
title | string | no | blank | Chart title. ${item.key} labels each chart inside a map. |
width | number | no | 600 | Width in pixels. |
height | number | no | 400 | Height in pixels. |
format | string | no | png | Image format. html is a static, self-contained page. One of png, svg, html. |
Outputs🔗
| Name | Type | Description |
|---|
chart | file (PNG) | The rendered chart. |
spec | json (Vega-Lite) | The Vega-Lite spec the block built; edit it and render with viz.vegalite. |
Example🔗
- id: "@box"
name: viz.box
inputs: [{block: "@plots", output: result, as: table}]
args:
x: state
y: biomass
title: ''
format: png