From 18510b979e76a6b44f5538bb624512db113a5253 Mon Sep 17 00:00:00 2001 From: Kanit Wongsuphasawat Date: Thu, 4 Aug 2022 08:30:53 -0700 Subject: [PATCH] add color example --- ...lot_2D_vertical_single_per_group_color.vl.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/specs/boxplot_2D_vertical_single_per_group_color.vl.json diff --git a/examples/specs/boxplot_2D_vertical_single_per_group_color.vl.json b/examples/specs/boxplot_2D_vertical_single_per_group_color.vl.json new file mode 100644 index 0000000000..793cffb7ff --- /dev/null +++ b/examples/specs/boxplot_2D_vertical_single_per_group_color.vl.json @@ -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"} + } +}