packages feed

hvega-0.4.0.0: tests/specs/color/customContinuous.vl

{
    "transform": [
        {
            "as": "accelerationZScore",
            "calculate": "(datum.Acceleration - 15.52)/2.80"
        }
    ],
    "mark": "circle",
    "data": {
        "url": "https://vega.github.io/vega-lite/data/cars.json"
    },
    "$schema": "https://vega.github.io/schema/vega-lite/v3.json",
    "encoding": {
        "color": {
            "field": "Acceleration",
            "scale": {
                "range": [
                    "#f33",
                    "#33f"
                ]
            },
            "type": "quantitative"
        },
        "size": {
            "value": 60
        },
        "opacity": {
            "value": 1
        },
        "x": {
            "field": "Horsepower",
            "type": "quantitative"
        },
        "y": {
            "field": "Miles_per_Gallon",
            "type": "quantitative"
        }
    },
    "description": "Custom continuous colour scheme (red to blue ramp)."
}