-
Notifications
You must be signed in to change notification settings - Fork 2
/
Simple_Bar_Chart.json
85 lines (85 loc) 路 2.1 KB
/
Simple_Bar_Chart.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
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"usermeta": {
"deneb": {
"build": "1.6.2.1",
"metaVersion": 1,
"provider": "vegaLite",
"providerVersion": "5.16.3"
},
"interactivity": {
"tooltip": true,
"contextMenu": true,
"selection": true,
"highlight": false,
"dataPointLimit": 50
},
"information": {
"name": "Simple Bar Chart Template",
"description": "This simple bar chart template is based on the official Vega-Lite example and has been adapted for Deneb in Power BI with added interactivity (Cross-filtering). Author: Cristobal Salcedo Beltran. Contact: csalcedo90@gmail.com.",
"author": "Cristobal Salcedo",
"uuid": "19669a01-08fc-477c-a357-9a1c6c134a1e",
"generated": "2024-05-29T03:47:47.358Z"
},
"dataset": [
{
"key": "__0__",
"name": "Category Name",
"description": "Name of the category",
"type": "text",
"kind": "column"
},
{
"key": "__1__",
"name": "Measure",
"description": "Quantitative measure associated with each category",
"type": "numeric",
"kind": "measure"
}
]
},
"config": {
"axis": {
"labelColor": "#605E5C",
"labelFontSize": 18,
"titleFontSize": 20
},
"axisX": {
"labelPadding": 5,
"labelAngle": 0
},
"axisY": {
"labelPadding": 10
}
},
"description": "Simple Bar Chart template based on the official Vega-Lite example adapted for Deneb Power BI with added interactivity (Cross-filtering). Author: Cristobal Salcedo Beltran. Contact: csalcedo90@gmail.com.",
"data": {
"name": "dataset"
},
"mark": {
"type": "bar"
},
"encoding": {
"x": {
"field": "__0__",
"type": "nominal",
"axis": {
"labelAngle": 0
}
},
"y": {
"field": "__1__",
"type": "quantitative"
},
"opacity": {
"condition": {
"test": {
"field": "__selected__",
"equal": "off"
},
"value": 0.3
},
"value": 1
}
}
}