hvega-0.5.0.0: tests/specs/color/namedContinuous3.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/v4.json",
"encoding": {
"color": {
"field": "Acceleration",
"scale": {
"scheme": "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 flipped plasma colour scheme (i.e. red to orange)."
}