/
gamma_distribution_chart_def.json
90 lines (90 loc) · 2.1 KB
/
gamma_distribution_chart_def.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"config": {
"view": {
"width": 400,
"height": 300
},
"mark": {
"tooltip": null
},
"title": {
"anchor": "middle"
},
"header": {
"title": null
}
},
"mark": "bar",
"encoding": {
"row": {
"type": "nominal",
"field": "column_name",
"sort": {
"field": "gamma_index"
},
"header": {
"labelAngle": 0,
"labelAnchor": "middle",
"labelAlign": "left"
}
},
"tooltip": [
{
"type": "nominal",
"field": "column_name"
},
{
"type": "ordinal",
"field": "level_name"
},
{
"type": "nominal",
"field": "level_proportion",
"title": "Percentage of record comparisons in this level",
"format": ".2%"
},
{
"type": "quantitative",
"field": "bayes_factor",
"format": ".4f"
},
{
"type": "nominal",
"field": "sql_expr"
},
{
"type": "quantitative",
"field": "log2_bayes_factor",
"format": ".4f"
}
],
"x": {
"type": "quantitative",
"field": "level_proportion",
"axis": {
"title": "proportion of comparisons"
}
},
"y": {
"type": "nominal",
"axis": {
"title": null
},
"field": "level_name"
}
},
"resolve": {
"scale": {
"y": "independent"
}
},
"width": 150,
"height": 50,
"data": {
"values": null
},
"title": {
"text": "Proportion of (non-null) comparisons in each level"
},
"$schema": "https://vega.github.io/schema/vega-lite/v4.json"
}