Reputation: 1616
How to change the color scheme in the vega lite heatmap
I tried changing the range scheme to different values, but the color not changing
Upvotes: 2
Views: 592
Reputation: 38982
You can set the scheme for the fill scale.
"fill": {
"field": "count",
"type": "quantitative",
"scale": {
"scheme": "category20b"
}
},
You could also provide a color range instead of a preset scheme.
"fill": {
"field": "count",
"type": "quantitative",
"scale": {
"range": [
"silver",
"purple",
"teal",
"blue"
]
}
},
Upvotes: 2