packages feed

hvega-0.11.0.1: tests/specs/sort/weighted.vl

{
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
        "values": [
            {
                "Horsepower": 1,
                "Weight_in_lbs": 19
            },
            {
                "Horsepower": 5,
                "Weight_in_lbs": 21
            },
            {
                "Horsepower": 2,
                "Weight_in_lbs": 58
            },
            {
                "Horsepower": 3,
                "Weight_in_lbs": 12
            },
            {
                "Horsepower": 4,
                "Weight_in_lbs": 13
            }
        ]
    },
    "encoding": {
        "order": {
            "field": "Weight_in_lbs",
            "type": "ordinal"
        },
        "x": {
            "field": "Horsepower",
            "sort": {
                "field": "Weight_in_lbs",
                "op": "mean"
            },
            "type": "quantitative"
        },
        "y": {
            "field": "Weight_in_lbs",
            "type": "quantitative"
        }
    },
    "height": 300,
    "mark": {
        "strokeWidth": 0.5,
        "type": "line"
    }
}