2022-02-27 04:41:30 +00:00
|
|
|
{
|
|
|
|
"$schema": "https://vega.github.io/schema/vega/v5.json",
|
2022-04-07 00:46:22 +00:00
|
|
|
"description": "A basic area chart example",
|
2022-02-27 04:41:30 +00:00
|
|
|
"width": 500,
|
2022-04-07 00:46:22 +00:00
|
|
|
"height": 100,
|
2022-02-27 04:41:30 +00:00
|
|
|
"padding": 5,
|
2022-04-06 21:51:24 +00:00
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"name": "con"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "dis"
|
|
|
|
}
|
|
|
|
],
|
2022-05-02 18:29:59 +00:00
|
|
|
"signals": [],
|
|
|
|
"scales": [],
|
2022-04-06 21:51:24 +00:00
|
|
|
"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-04-06 21:51:24 +00:00
|
|
|
}
|
|
|
|
],
|
2022-02-27 04:41:30 +00:00
|
|
|
"marks": [
|
|
|
|
{
|
|
|
|
"type": "area",
|
2022-04-06 21:51:24 +00:00
|
|
|
"from": {
|
|
|
|
"data": "con"
|
|
|
|
},
|
2022-02-27 04:41:30 +00:00
|
|
|
"encode": {
|
|
|
|
"update": {
|
2022-04-06 21:51:24 +00:00
|
|
|
"x": {
|
|
|
|
"scale": "xscale",
|
|
|
|
"field": "x"
|
|
|
|
},
|
|
|
|
"y": {
|
|
|
|
"scale": "yscale",
|
|
|
|
"field": "y"
|
|
|
|
},
|
|
|
|
"y2": {
|
|
|
|
"scale": "yscale",
|
|
|
|
"value": 0
|
|
|
|
},
|
2022-02-27 04:41:30 +00:00
|
|
|
"fill": {
|
2022-04-07 00:46:22 +00:00
|
|
|
"signal": "{gradient: 'linear', x1: 1, y1: 1, x2: 0, y2: 1, stops: [ {offset: 0.0, color: '#4C78A8'}] }"
|
2022-03-23 00:38:01 +00:00
|
|
|
},
|
2022-04-06 21:51:24 +00:00
|
|
|
"interpolate": {
|
|
|
|
"value": "monotone"
|
|
|
|
},
|
|
|
|
"fillOpacity": {
|
|
|
|
"value": 1
|
|
|
|
}
|
2022-02-27 04:41:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "rect",
|
2022-04-06 21:51:24 +00:00
|
|
|
"from": {
|
|
|
|
"data": "dis"
|
|
|
|
},
|
2022-02-27 04:41:30 +00:00
|
|
|
"encode": {
|
|
|
|
"enter": {
|
2022-04-06 21:51:24 +00:00
|
|
|
"width": {
|
|
|
|
"value": 1
|
|
|
|
}
|
2022-02-27 04:41:30 +00:00
|
|
|
},
|
|
|
|
"update": {
|
2022-04-06 21:51:24 +00:00
|
|
|
"x": {
|
|
|
|
"scale": "xscale",
|
|
|
|
"field": "x"
|
|
|
|
},
|
|
|
|
"y": {
|
|
|
|
"scale": "yscale",
|
|
|
|
"field": "y"
|
2022-04-12 07:39:38 +00:00
|
|
|
},
|
|
|
|
"y2": {
|
|
|
|
"scale": "yscale",
|
|
|
|
"value": 0
|
2022-04-06 21:51:24 +00:00
|
|
|
}
|
2022-02-27 04:41:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "symbol",
|
2022-04-06 21:51:24 +00:00
|
|
|
"from": {
|
|
|
|
"data": "dis"
|
|
|
|
},
|
2022-02-27 04:41:30 +00:00
|
|
|
"encode": {
|
|
|
|
"enter": {
|
2022-04-06 21:51:24 +00:00
|
|
|
"shape": {
|
|
|
|
"value": "circle"
|
|
|
|
},
|
2022-04-12 07:39:38 +00:00
|
|
|
"size": [{ "value": 100 }],
|
2022-04-06 21:51:24 +00:00
|
|
|
"tooltip": {
|
|
|
|
"signal": "datum.y"
|
|
|
|
}
|
2022-02-27 04:41:30 +00:00
|
|
|
},
|
|
|
|
"update": {
|
2022-04-06 21:51:24 +00:00
|
|
|
"x": {
|
|
|
|
"scale": "xscale",
|
|
|
|
"field": "x"
|
|
|
|
},
|
|
|
|
"y": {
|
|
|
|
"scale": "yscale",
|
|
|
|
"field": "y"
|
2022-04-07 00:46:22 +00:00
|
|
|
},
|
|
|
|
"fill": {
|
|
|
|
"value": "#1e4577"
|
2022-04-06 21:51:24 +00:00
|
|
|
}
|
2022-02-27 04:41:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2022-04-07 11:28:33 +00:00
|
|
|
}
|