{ "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/v4.json", "encoding": { "color": { "field": "Acceleration", "scale": { "scheme": { "extent": [ 0, 0.5 ], "name": "plasma" } }, "sort": "descending", "type": "quantitative" }, "size": { "value": 60 }, "opacity": { "value": 1 }, "x": { "field": "Horsepower", "type": "quantitative" }, "y": { "field": "Miles_per_Gallon", "type": "quantitative" } }, "description": "Continuous colour scale based on named vega schame. Should use the first half of the flipped plasma colour scheme (i.e. red to orange)." }