Skip to content

Commit

Permalink
Sample chart data
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Jun 11, 2024
1 parent da3c16d commit 9b525b8
Show file tree
Hide file tree
Showing 4 changed files with 3,121 additions and 0 deletions.
22 changes: 22 additions & 0 deletions contrib/charts/area_density_stacked.vl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"title": "{{ header }}",
"width": 400,
"height": 80,
"data": {
"url": "data/penguins.json"
},
"mark": "area",
"transform": [
{
"density": "{{ x }}",
"groupby": ["Species"],
"extent": [2500, 6500]
}
],
"encoding": {
"x": {"field": "value", "type": "quantitative", "title": "{{ title_x }}"},
"y": {"field": "density", "type": "quantitative", "stack": "zero"},
"color": {"field": "{{ field_x }}", "type": "nominal"}
}
}
Loading

0 comments on commit 9b525b8

Please sign in to comment.