packages feed

hvega-0.12.0.7: tests/specs/gallery/interaction/interaction11c.vl

{
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
        "url": "https://vega.github.io/vega-lite/data/cars.json"
    },
    "description": "Drag out a rectangular brush to highlight points.",
    "encoding": {
        "color": {
            "condition": {
                "field": "Cylinders",
                "selection": "brush",
                "type": "ordinal"
            },
            "value": "grey"
        },
        "x": {
            "field": "Horsepower",
            "type": "quantitative"
        },
        "y": {
            "field": "Miles_per_Gallon",
            "type": "quantitative"
        }
    },
    "mark": "point",
    "selection": {
        "brush": {
            "init": {
                "y": [
                    13,
                    37
                ]
            },
            "type": "interval"
        }
    }
}