squiggle/packages/components/src/vega-specs/spec-distributions.json

124 lines
2.2 KiB
JSON
Raw Normal View History

2022-02-27 04:41:30 +00:00
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example",
2022-02-27 04:41:30 +00:00
"width": 500,
"height": 100,
2022-02-27 04:41:30 +00:00
"padding": 5,
"data": [
{
"name": "con"
},
{
"name": "dis"
}
],
2022-05-02 18:29:59 +00:00
"signals": [],
"scales": [],
"axes": [
{
"orient": "bottom",
"scale": "xscale",
2022-04-07 11:56:17 +00:00
"labelColor": "#727d93",
"tickColor": "#fff",
"tickOpacity": 0.0,
"domainColor": "#fff",
"domainOpacity": 0.0,
2022-04-29 21:16:22 +00:00
"format": "~g",
2022-04-07 11:56:17 +00:00
"tickCount": 10
}
],
2022-02-27 04:41:30 +00:00
"marks": [
{
"type": "area",
"from": {
"data": "con"
},
2022-02-27 04:41:30 +00:00
"encode": {
"update": {
"x": {
"scale": "xscale",
"field": "x"
},
"y": {
"scale": "yscale",
"field": "y"
},
"y2": {
"scale": "yscale",
"value": 0
},
2022-02-27 04:41:30 +00:00
"fill": {
"value": "#4C78A8"
2022-03-23 00:38:01 +00:00
},
"interpolate": {
"value": "monotone"
},
"fillOpacity": {
"value": 1
}
2022-02-27 04:41:30 +00:00
}
}
},
{
"type": "rect",
"from": {
"data": "dis"
},
2022-02-27 04:41:30 +00:00
"encode": {
"enter": {
"width": {
"value": 1
}
2022-02-27 04:41:30 +00:00
},
"update": {
"x": {
"scale": "xscale",
"field": "x"
},
"y": {
"scale": "yscale",
"field": "y"
2022-04-12 07:39:38 +00:00
},
"y2": {
"scale": "yscale",
"value": 0
2022-05-26 21:18:10 +00:00
},
"fill": {
"value": "#2f65a7"
}
2022-02-27 04:41:30 +00:00
}
}
},
{
"type": "symbol",
"from": {
"data": "dis"
},
2022-02-27 04:41:30 +00:00
"encode": {
"enter": {
"shape": {
"value": "circle"
},
2022-04-12 07:39:38 +00:00
"size": [{ "value": 100 }],
"tooltip": {
"signal": "datum.y"
}
2022-02-27 04:41:30 +00:00
},
"update": {
"x": {
"scale": "xscale",
"field": "x"
},
"y": {
"scale": "yscale",
"field": "y"
},
"fill": {
"value": "#1e4577"
}
2022-02-27 04:41:30 +00:00
}
}
}
]
2022-04-07 11:28:33 +00:00
}