{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": { "url": "https://vega.github.io/vega-lite/data/iris.json" }, "encoding": { "row": { "field": "organ", "type": "nominal" }, "x": { "field": "value", "title": "value (cm)", "type": "quantitative" }, "y": { "field": "density", "type": "quantitative" } }, "height": 50, "mark": "area", "transform": [ { "as": [ "organ", "value" ], "fold": [ "petalWidth", "petalLength", "sepalWidth", "sepalLength" ] }, { "bandwidth": 0.3, "density": "value", "groupby": [ "organ" ] } ], "width": 300 }