Skip to content

Commit

Permalink
add color example
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Aug 4, 2022
1 parent 17d84cd commit 18510b9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/specs/boxplot_2D_vertical_single_per_group_color.vl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"a": "A", "b": 28}, {"a": "A", "b": 30}, {"a": "B", "b": 55}
]
},
"mark": "boxplot",
"encoding": {
"x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
"color": {"field": "a", "type": "nominal"},
"y": {"field": "b", "type": "quantitative"}
}
}

0 comments on commit 18510b9

Please sign in to comment.