packages feed

hvega-0.12.0.7: tests/specs/gallery/advanced/density2.vl

{
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
        "url": "https://vega.github.io/vega-lite/data/iris.json"
    },
    "encoding": {
        "color": {
            "field": "measurement",
            "type": "nominal"
        },
        "x": {
            "field": "value",
            "title": "width/length (cm)",
            "type": "quantitative"
        },
        "y": {
            "field": "density",
            "type": "quantitative"
        }
    },
    "height": 100,
    "mark": {
        "opacity": 0.5,
        "type": "area"
    },
    "transform": [
        {
            "as": [
                "measurement",
                "value"
            ],
            "fold": [
                "petalWidth",
                "petalLength",
                "sepalWidth",
                "sepalLength"
            ]
        },
        {
            "bandwidth": 0.3,
            "density": "value",
            "extent": [
                0,
                8
            ],
            "groupby": [
                "measurement"
            ],
            "steps": 200
        }
    ],
    "width": 400
}