Skip to content

Commit

Permalink
add example arc_color_mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyBys committed Oct 5, 2022
1 parent 5d8f43c commit c03b7dc
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions examples/specs/arc_color_mappings.vl.json
@@ -0,0 +1,59 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A simple pie chart with embedded data.",
"data": {
"values": [
{
"category": 1,
"value": 4
},
{
"category": 2,
"value": 6
},
{
"category": 3,
"value": 10
},
{
"category": 4,
"value": 3
},
{
"category": 5,
"value": 7
},
{
"category": 6,
"value": 8
}
]
},
"mark": "arc",
"encoding": {
"theta": {
"field": "value",
"type": "quantitative"
},
"color": {
"field": "category",
"type": "nominal",
"scale": {
"range": [
"purple",
"green",
"blue",
"yellow",
"magenta",
"brown"
],
"domain": {
"unionWith": [
5,
6
]
}
}
}
}
}

0 comments on commit c03b7dc

Please sign in to comment.