packages feed

hvega-0.5.0.0: tests/specs/viewcomposition/columns3.vl

{
    "transform": [
        {
            "filter": "datum.year == 2000"
        },
        {
            "as": "gender",
            "calculate": "datum.sex == 2 ? 'Female' : 'Male'"
        }
    ],
    "config": {
        "header": {
            "labelFontSize": 15,
            "titleFontSize": 20
        }
    },
    "mark": "bar",
    "data": {
        "url": "https://vega.github.io/vega-lite/data/population.json"
    },
    "width": {
        "step": 17
    },
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "encoding": {
        "color": {
            "field": "gender",
            "scale": {
                "range": [
                    "#CC9933",
                    "#3399CC"
                ]
            },
            "type": "nominal"
        },
        "x": {
            "field": "age",
            "type": "ordinal"
        },
        "column": {
            "field": "gender",
            "header": {},
            "type": "nominal"
        },
        "y": {
            "field": "people",
            "aggregate": "sum",
            "type": "quantitative",
            "axis": {
                "title": "Population"
            }
        }
    }
}