Vega parsed models

建立於 差異永不過期
0 刪除
675
28 新增
675
{
{
"circ": {
"circ": {
"type": "facet",
"type": "facet",
"parent": null,
"parent": null,
"config": {
"config": {
"timeFormat": "%b %d, %Y",
"timeFormat": "%b %d, %Y",
"countTitle": "Count of Records",
"countTitle": "Count of Records",
"boxplot": {
"boxplot": {
"size": 14,
"size": 14,
"extent": 1.5,
"extent": 1.5,
"box": {},
"box": {},
"median": {
"median": {
"color": "white"
"color": "white"
},
},
"outliers": {},
"outliers": {},
"rule": {},
"rule": {},
"ticks": null
"ticks": null
},
},
"errorbar": {
"errorbar": {
"center": "mean",
"center": "mean",
"rule": true,
"rule": true,
"ticks": false
"ticks": false
},
},
"errorband": {
"errorband": {
"band": {
"band": {
"opacity": 0.3
"opacity": 0.3
},
},
"borders": false
"borders": false
},
},
"projection": {},
"projection": {},
"selection": {
"selection": {
"single": {
"single": {
"on": "click",
"on": "click",
"fields": [
"fields": [
"_vgsid_"
"_vgsid_"
],
],
"resolve": "global",
"resolve": "global",
"empty": "all",
"empty": "all",
"clear": "dblclick"
"clear": "dblclick"
},
},
"multi": {
"multi": {
"on": "click",
"on": "click",
"fields": [
"fields": [
"_vgsid_"
"_vgsid_"
],
],
"toggle": "event.shiftKey",
"toggle": "event.shiftKey",
"resolve": "global",
"resolve": "global",
"empty": "all",
"empty": "all",
"clear": "dblclick"
"clear": "dblclick"
},
},
"interval": {
"interval": {
"on": "[mousedown, window:mouseup] > window:mousemove!",
"on": "[mousedown, window:mouseup] > window:mousemove!",
"encodings": [
"encodings": [
"x",
"x",
"y"
"y"
],
],
"translate": "[mousedown, window:mouseup] > window:mousemove!",
"translate": "[mousedown, window:mouseup] > window:mousemove!",
"zoom": "wheel!",
"zoom": "wheel!",
"mark": {
"mark": {
"fill": "#333",
"fill": "#333",
"fillOpacity": 0.125,
"fillOpacity": 0.125,
"stroke": "white"
"stroke": "white"
},
},
"resolve": "global",
"resolve": "global",
"clear": "dblclick"
"clear": "dblclick"
}
}
},
},
"facet": {
"facet": {
"spacing": 20
"spacing": 20
},
},
"concat": {
"concat": {
"spacing": 20
"spacing": 20
},
},
"range": {
"range": {
"category": {
"category": {
"scheme": "elastic"
"scheme": "elastic"
}
}
},
},
"background": "transparent",
"background": "transparent",
"padding": 5,
"padding": 5,
"mark": {
"mark": {
"color": "#54B399",
"color": "#54B399",
"invalid": "filter",
"invalid": "filter",
"timeUnitBand": 1
"timeUnitBand": 1
},
},
"arc": {},
"arc": {},
"area": {},
"area": {},
"bar": {
"bar": {
"binSpacing": 1,
"binSpacing": 1,
"continuousBandSize": 5,
"continuousBandSize": 5,
"timeUnitBandPosition": 0.5
"timeUnitBandPosition": 0.5
},
},
"circle": {},
"circle": {},
"image": {},
"image": {},
"line": {},
"line": {},
"point": {},
"point": {},
"rect": {
"rect": {
"binSpacing": 0,
"binSpacing": 0,
"continuousBandSize": 5,
"continuousBandSize": 5,
"timeUnitBandPosition": 0.5
"timeUnitBandPosition": 0.5
},
},
"rule": {
"rule": {
"color": "black"
"color": "black"
},
},
"square": {},
"square": {},
"text": {
"text": {
"color": "black"
"color": "black"
},
},
"tick": {
"tick": {
"thickness": 1
"thickness": 1
},
},
"trail": {},
"trail": {},
"geoshape": {},
"geoshape": {},
"axis": {
"axis": {
"tickColor": "#eef0f3",
"tickColor": "#eef0f3",
"domainColor": "#eef0f3",
"domainColor": "#eef0f3",
"gridColor": "#eef0f3"
"gridColor": "#eef0f3"
},
},
"header": {
"header": {
"titlePadding": 10,
"titlePadding": 10,
"labelPadding": 10
"labelPadding": 10
},
},
"headerRow": {},
"headerRow": {},
"headerColumn": {},
"headerColumn": {},
"headerFacet": {},
"headerFacet": {},
"legend": {
"legend": {
"gradientHorizontalMaxLength": 200,
"gradientHorizontalMaxLength": 200,
"gradientHorizontalMinLength": 100,
"gradientHorizontalMinLength": 100,
"gradientVerticalMaxLength": 200,
"gradientVerticalMaxLength": 200,
"gradientVerticalMinLength": 64,
"gradientVerticalMinLength": 64,
"unselectedOpacity": 0.35
"unselectedOpacity": 0.35
},
},
"scale": {
"scale": {
"pointPadding": 0.5,
"pointPadding": 0.5,
"barBandPaddingInner": 0.1,
"barBandPaddingInner": 0.1,
"rectBandPaddingInner": 0,
"rectBandPaddingInner": 0,
"minBandSize": 2,
"minBandSize": 2,
"minFontSize": 8,
"minFontSize": 8,
"maxFontSize": 40,
"maxFontSize": 40,
"minOpacity": 0.3,
"minOpacity": 0.3,
"maxOpacity": 0.8,
"maxOpacity": 0.8,
"minSize": 9,
"minSize": 9,
"minStrokeWidth": 1,
"minStrokeWidth": 1,
"maxStrokeWidth": 4,
"maxStrokeWidth": 4,
"quantileCount": 4,
"quantileCount": 4,
"quantizeCount": 4
"quantizeCount": 4
},
},
"style": {
"style": {
"guide-label": {
"guide-label": {
"fill": "#69707d"
"fill": "#69707d"
},
},
"guide-title": {
"guide-title": {
"fill": "#343741"
"fill": "#343741"
},
},
"group-title": {
"group-title": {
"fill": "#343741"
"fill": "#343741"
},
},
"group-subtitle": {
"group-subtitle": {
"fill": "#343741"
"fill": "#343741"
}
}
},
},
"title": {
"title": {
"color": "#343741"
"color": "#343741"
},
},
"view": {
"view": {
"continuousWidth": 200,
"continuousWidth": 200,
"continuousHeight": 200,
"continuousHeight": 200,
"step": 20
"step": 20
}
}
},
},
"name": "",
"name": "",
"data": "DATA",
"data": "DATA",
"transforms": [],
"transforms": [],
"layout": {
"layout": {
"spacing": 20,
"spacing": 20,
"center": true,
"center": true,
"columns": 2
"columns": 2
},
},
"scaleNameMap": {
"scaleNameMap": {
"nameMap": {
"nameMap": {
"child_layer_0_x": "child_x",
"child_layer_0_x": "child_x",
"child_layer_1_x": "child_x"
"child_layer_1_x": "child_x"
}
}
},
},
"projectionNameMap": {
"projectionNameMap": {
"nameMap": {}
"nameMap": {}
},
},
"signalNameMap": {
"signalNameMap": {
"nameMap": {
"nameMap": {
"child_layer_0_width": "child_width",
"child_layer_0_width": "child_width",
"child_layer_1_width": "child_width",
"child_layer_1_width": "child_width",
"child_layer_0_height": "child_height",
"child_layer_0_height": "child_height",
"child_layer_1_height": "child_height"
"child_layer_1_height": "child_height"
}
}
},
},
"component": {
"component": {
"data": "DATA",
"data": "DATA",
"layoutSize": {
"layoutSize": {
"explicit": {},
"explicit": {},
"implicit": {}
"implicit": {}
},
},
"layoutHeaders": {
"layoutHeaders": {
"row": {},
"row": {},
"column": {},
"column": {},
"facet": {
"facet": {
"title": "",
"title": "",
"facetFieldDef": {
"facetFieldDef": {
"field": "category",
"field": "_source.category",
"type": "ordinal",
"type": "ordinal",
"title": ""
"title": ""
},
},
"header": []
"header": []
}
}
},
},
"mark": null,
"mark": null,
"resolve": {
"resolve": {
"scale": {
"scale": {
"x": "independent",
"x": "independent",
"y": "independent"
"y": "independent"
},
},
"axis": {
"axis": {
"y": "independent",
"y": "independent",
"x": "independent"
"x": "independent"
},
},
"legend": {}
"legend": {}
},
},
"selection": {},
"selection": {},
"scales": {},
"scales": {},
"axes": {},
"axes": {},
"legends": {}
"legends": {}
},
},
"view": {},
"view": {},
"children": [
"children": [
{
{
"type": "layer",
"type": "layer",
"name": "child",
"name": "child",
"data": "DATA",
"data": "DATA",
"transforms": [],
"transforms": [],
"layout": {},
"layout": {},
"component": {
"component": {
"data": "DATA",
"data": "DATA",
"layoutSize": {
"layoutSize": {
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"width": "step",
"width": "step",
"height": 200
"height": 200
}
}
},
},
"layoutHeaders": {
"layoutHeaders": {
"row": {},
"row": {},
"column": {},
"column": {},
"facet": {}
"facet": {}
},
},
"mark": null,
"mark": null,
"resolve": {
"resolve": {
"scale": {
"scale": {
"y": "independent",
"y": "independent",
"x": "shared"
"x": "shared"
},
},
"axis": {
"axis": {
"y": "independent",
"y": "independent",
"x": "shared"
"x": "shared"
},
},
"legend": {}
"legend": {}
},
},
"scales": {
"scales": {
"x": {
"x": {
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"name": "child_x",
"name": "child_x",
"type": "band",
"type": "band",
"domains": [
"domains": [
{
{
"data": "DATA",
"data": "DATA",
"field": "day_of_week",
"field": "_source\\.day_of_week",
"sort": {
"sort": {
"op": "min",
"op": "min",
"field": "day_of_week",
"field": "_source\\.day_of_week",
"order": "descending"
"order": "descending"
}
}
},
},
{
{
"data": "DATA",
"data": "DATA",
"field": "day_of_week",
"field": "_source\\.day_of_week",
"sort": {
"sort": {
"op": "min",
"op": "min",
"field": "day_of_week",
"field": "_source\\.day_of_week",
"order": "descending"
"order": "descending"
}
}
}
}
],
],
"paddingInner": 0.1,
"paddingInner": 0.1,
"paddingOuter": 0.05,
"paddingOuter": 0.05,
"range": {
"range": {
"step": 20
"step": 20
}
}
},
},
"merged": false
"merged": false
}
}
},
},
"axes": {
"axes": {
"x": [
"x": [
{
{
"explicit": {
"explicit": {
"title": ""
"title": ""
},
},
"implicit": {
"implicit": {
"gridScale": "child_layer_0_y",
"gridScale": "child_layer_0_y",
"scale": "child_x",
"scale": "child_x",
"orient": "bottom",
"orient": "bottom",
"grid": false,
"grid": false,
"labelAlign": "right",
"labelAlign": "right",
"labelAngle": 270,
"labelAngle": 270,
"labelBaseline": "middle",
"labelBaseline": "middle",
"zindex": 0
"zindex": 0
},
},
"mainExtracted": false
"mainExtracted": false
}
}
],
],
"y": [
"y": [
{
{
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"gridScale": "child_x",
"gridScale": "child_x",
"scale": "child_layer_0_y",
"scale": "child_layer_0_y",
"orient": "left",
"orient": "left",
"grid": false,
"grid": false,
"labelOverlap": true,
"labelOverlap": true,
"tickCount": {
"tickCount": {
"signal": "ceil(child_height/40)"
"signal": "ceil(child_height/40)"
},
},
"title": [
"title": [
{
{
"aggregate": "sum",
"aggregate": "sum",
"field": "taxless_total_price"
"field": "_source.taxless_total_price"
}
}
],
],
"zindex": 0
"zindex": 0
},
},
"mainExtracted": false
"mainExtracted": false
},
},
{
{
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"gridScale": "child_x",
"gridScale": "child_x",
"scale": "child_layer_1_y",
"scale": "child_layer_1_y",
"orient": "right",
"orient": "right",
"grid": false,
"grid": false,
"labelOverlap": true,
"labelOverlap": true,
"tickCount": {
"tickCount": {
"signal": "ceil(child_height/40)"
"signal": "ceil(child_height/40)"
},
},
"title": [
"title": [
{
{
"aggregate": "count",
"aggregate": "count",
"field": "day_of_week"
"field": "_source.day_of_week"
}
}
],
],
"zindex": 0
"zindex": 0
},
},
"mainExtracted": false
"mainExtracted": false
}
}
]
]
},
},
"legends": {}
"legends": {}
},
},
"view": {},
"view": {},
"children": [
"children": [
{
{
"type": "unit",
"type": "unit",
"name": "child_layer_0",
"name": "child_layer_0",
"size": {},
"size": {},
"data": "DATA",
"data": "DATA",
"transforms": [],
"transforms": [],
"layout": {},
"layout": {},
"component": {
"component": {
"data": "DATA",
"data": "DATA",
"layoutSize": {
"layoutSize": {
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"width": "merged",
"width": "merged",
"height": "merged"
"height": "merged"
}
}
},
},
"layoutHeaders": {
"layoutHeaders": {
"row": {},
"row": {},
"column": {},
"column": {},
"facet": {}
"facet": {}
},
},
"mark": [
"mark": [
{
{
"name": "child_layer_0_marks",
"name": "child_layer_0_marks",
"type": "rect",
"type": "rect",
"style": [
"style": [
"bar"
"bar"
],
],
"from": {
"from": {
"data": "DATA"
"data": "DATA"
},
},
"encode": {
"encode": {
"update": {
"update": {
"fill": {
"fill": {
"value": "#54B399"
"value": "#54B399"
},
},
"ariaRoleDescription": {
"ariaRoleDescription": {
"value": "bar"
"value": "bar"
},
},
"description": {
"description": {
"signal": "\"Sum of taxless_total_price: \" + (format(datum[\"sum_taxless_total_price\"], \"\")) + \"; day_of_week: \" + (isValid(datum[\"day_of_week\"]) ? datum[\"day_of_week\"] : \"\"+datum[\"day_of_week\"])"
"signal": "\"Sum of _source.taxless_total_price: \" + (format(datum[\"sum__source.taxless_total_price\"], \"\")) + \"; _source.day_of_week: \" + (isValid(datum[\"_source.day_of_week\"]) ? datum[\"_source.day_of_week\"] : \"\"+datum[\"_source.day_of_week\"])"
},
},
"x": {
"x": {
"scale": "child_x",
"scale": "child_x",
"field": "day_of_week"
"field": "_source\\.day_of_week"
},
},
"width": {
"width": {
"scale": "child_x",
"scale": "child_x",
"band": 1
"band": 1
},
},
"y": [
"y": [
{
{
"test": "!isValid(datum[\"sum_taxless_total_price\"]) || !isFinite(+datum[\"sum_taxless_total_price\"])",
"test": "!isValid(datum[\"sum__source.taxless_total_price\"]) || !isFinite(+datum[\"sum__source.taxless_total_price\"])",
"field": {
"field": {
"group": "height"
"group": "height"
}
}
},
},
{
{
"scale": "child_layer_0_y",
"scale": "child_layer_0_y",
"field": "sum_taxless_total_price"
"field": "sum__source\\.taxless_total_price"
}
}
],
],
"y2": {
"y2": {
"field": {
"field": {
"group": "height"
"group": "height"
}
}
}
}
}
}
}
}
}
}
],
],
"resolve": {
"resolve": {
"scale": {},
"scale": {},
"axis": {},
"axis": {},
"legend": {}
"legend": {}
},
},
"selection": {},
"selection": {},
"scales": {
"scales": {
"x": {
"x": {
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"name": "child_layer_0_x",
"name": "child_layer_0_x",
"type": "band",
"type": "band",
"domains": [
"domains": [
null
null
],
],
"paddingInner": 0.1,
"paddingInner": 0.1,
"paddingOuter": 0.05
"paddingOuter": 0.05
},
},
"merged": true
"merged": true
},
},
"y": {
"y": {
"explicit": {
"explicit": {
"zero": false
"zero": false
},
},
"implicit": {
"implicit": {
"name": "child_layer_0_y",
"name": "child_layer_0_y",
"type": "linear",
"type": "linear",
"domains": [
"domains": [
{
{
"data": "DATA",
"data": "DATA",
"field": "sum_taxless_total_price"
"field": "sum__source\\.taxless_total_price"
}
}
],
],
"nice": true,
"nice": true,
"range": [
"range": [
{
{
"signal": "child_height"
"signal": "child_height"
},
},
0
0
]
]
},
},
"merged": false
"merged": false
}
}
},
},
"axes": {},
"axes": {},
"legends": {}
"legends": {}
},
},
"view": {},
"view": {},
"children": [],
"children": [],
"markDef": {
"markDef": {
"type": "bar",
"type": "bar",
"filled": true,
"filled": true,
"orient": "vertical"
"orient": "vertical"
},
},
"encoding": {
"encoding": {
"y": {
"y": {
"aggregate": "sum",
"aggregate": "sum",
"field": "taxless_total_price",
"field": "_source.taxless_total_price",
"type": "quantitative",
"type": "quantitative",
"scale": {
"scale": {
"zero": false
"zero": false
}
}
},
},
"x": {
"x": {
"field": "day_of_week",
"field": "_source.day_of_week",
"type": "ordinal",
"type": "ordinal",
"sort": {
"sort": {
"encoding": "x",
"encoding": "x",
"order": "descending"
"order": "descending"
},
},
"title": ""
"title": ""
}
}
},
},
"specifiedScales": {
"specifiedScales": {
"x": {},
"x": {},
"y": {
"y": {
"zero": false
"zero": false
}
}
},
},
"stack": null,
"stack": null,
"specifiedAxes": {},
"specifiedAxes": {},
"specifiedLegends": {}
"specifiedLegends": {}
},
},
{
{
"type": "unit",
"type": "unit",
"name": "child_layer_1",
"name": "child_layer_1",
"data": "DATA",
"data": "DATA",
"transforms": [],
"transforms": [],
"layout": {},
"layout": {},
"component": {
"component": {
"data": "DATA",
"data": "DATA",
"layoutSize": {
"layoutSize": {
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"width": "merged",
"width": "merged",
"height": "merged"
"height": "merged"
}
}
},
},
"layoutHeaders": {
"layoutHeaders": {
"row": {},
"row": {},
"column": {},
"column": {},
"facet": {}
"facet": {}
},
},
"mark": [
"mark": [
{
{
"name": "child_layer_1_marks",
"name": "child_layer_1_marks",
"type": "line",
"type": "line",
"style": [
"style": [
"line"
"line"
],
],
"sort": {
"sort": {
"field": "datum[\"day_of_week\"]",
"field": "datum[\"_source.day_of_week\"]",
"order": "descending"
"order": "descending"
},
},
"from": {
"from": {
"data": "DATA"
"data": "DATA"
},
},
"encode": {
"encode": {
"update": {
"update": {
"stroke": {
"stroke": {
"value": "#000000"
"value": "#000000"
},
},
"description": {
"description": {
"signal": "\"Count of Records: \" + (format(datum[\"__count\"], \"\")) + \"; day_of_week: \" + (isValid(datum[\"day_of_week\"]) ? datum[\"day_of_week\"] : \"\"+datum[\"day_of_week\"])"
"signal": "\"Count of Records: \" + (format(datum[\"__count\"], \"\")) + \"; _source.day_of_week: \" + (isValid(datum[\"_source.day_of_week\"]) ? datum[\"_source.day_of_week\"] : \"\"+datum[\"_source.day_of_week\"])"
},
},
"x": {
"x": {
"scale": "child_x",
"scale": "child_x",
"field": "day_of_week",
"field": "_source\\.day_of_week",
"band": 0.5
"band": 0.5
},
},
"y": {
"y": {
"scale": "child_layer_1_y",
"scale": "child_layer_1_y",
"field": "__count"
"field": "__count"
},
},
"defined": {
"defined": {
"signal": "isValid(datum[\"__count\"]) && isFinite(+datum[\"__count\"])"
"signal": "isValid(datum[\"__count\"]) && isFinite(+datum[\"__count\"])"
}
}
}
}
}
}
}
}
],
],
"resolve": {
"resolve": {
"scale": {},
"scale": {},
"axis": {},
"axis": {},
"legend": {}
"legend": {}
},
},
"selection": {},
"selection": {},
"scales": {
"scales": {
"x": {
"x": {
"explicit": {},
"explicit": {},
"implicit": {
"implicit": {
"name": "child_layer_1_x",
"name": "child_layer_1_x",
"type": "point",
"type": "point",
"domains": [
"domains": [
null
null
],
],
"paddingInner": 0,
"paddingInner": 0,
"paddingOuter": 0.05,
"paddingOuter": 0.05,
"range": {
"range": {
"step": 20
"step": 20
}
}
},
},
"merged": true
"merged": true
},
},
"y": {
"y": {
"explicit": {
"explicit": {
"zero": false
"zero": false
},
},
"implicit": {
"implicit": {
"name": "child_layer_1_y",
"name": "child_layer_1_y",
"type": "linear",
"type": "linear",
"domains": [
"domains": [
{
{
"data": "DATA",
"data": "DATA",
"field": "__count"
"field": "__count"
}
}
],
],
"nice": true,
"nice": true,
"range": [
"range": [
{
{
"signal": "child_height"
"signal": "child_height"
},
},
0
0
]
]
},
},
"merged": false
"merged": false
}
}
},
},
"axes": {},
"axes": {},
"legends": {}
"legends": {}
},
},
"view": {},
"view": {},
"children": [],
"children": [],
"markDef": {
"markDef": {
"type": "line",
"type": "line",
"filled": false,
"filled": false,
"orient": "vertical"
"orient": "vertical"
},
},
"encoding": {
"encoding": {
"y": {
"y": {
"aggregate": "count",
"aggregate": "count",
"field": "day_of_week",
"field": "_source.day_of_week",
"type": "quantitative",
"type": "quantitative",
"scale": {
"scale": {
"zero": false
"zero": false
}
}
},
},
"x": {
"x": {
"field": "day_of_week",
"field": "_source.day_of_week",
"type": "ordinal",
"type": "ordinal",
"sort": {
"sort": {
"encoding": "x",
"encoding": "x",
"order": "descending"
"order": "descending"
},
},
"title": ""
"title": ""
},
},
"color": {
"color": {
"value": "#000000"
"value": "#000000"
}
}
},
},
"specifiedScales": {
"specifiedScales": {
"x": {},
"x": {},
"y": {
"y": {
"zero": false
"zero": false
}
}
},
},
"stack": null,
"stack": null,
"specifiedAxes": {},
"specifiedAxes": {},
"specifiedLegends": {}
"specifiedLegends": {}
}
}
]
]
}
}
],
],
"facet": {}
"facet": {}
}
}
}
}