Skip to content

Commit 9167f7e

Browse files
Simon PedersenSimon Pedersen
Simon Pedersen
authored and
Simon Pedersen
committed
initial
0 parents  commit 9167f7e

14 files changed

+3476
-0
lines changed

.api/v1.1.0/PowerBI-visuals.d.ts

+1,977
Large diffs are not rendered by default.

.api/v1.1.0/schema.capabilities.json

+721
Large diffs are not rendered by default.

.api/v1.1.0/schema.pbiviz.json

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"PBI_API_VERSION": "v1.1.0",
3+
"type": "object",
4+
"properties": {
5+
"apiVersion": {
6+
"type": "string",
7+
"description": "Version of the IVisual API"
8+
},
9+
"author": {
10+
"type": "object",
11+
"description": "Information about the author of the visual",
12+
"properties": {
13+
"name": {
14+
"type": "string",
15+
"description": "Name of the visual author. This is displayed to users."
16+
},
17+
"email": {
18+
"type": "string",
19+
"description": "E-mail of the visual author. This is displayed to users for support."
20+
}
21+
}
22+
},
23+
"assets": {
24+
"type": "object",
25+
"description": "Assets used by the visual",
26+
"properties": {
27+
"icon": {
28+
"type": "string",
29+
"description": "A 20x20 png icon used to represent the visual"
30+
}
31+
}
32+
},
33+
"externalJS": {
34+
"type": "array",
35+
"description": "An array of relative paths to 3rd party javascript libraries to load",
36+
"items": {
37+
"type": "string"
38+
}
39+
},
40+
"style" : {
41+
"type": "string",
42+
"description": "Relative path to the stylesheet (less) for the visual"
43+
},
44+
"capabilities": {
45+
"type": "string",
46+
"description": "Relative path to the visual capabilities json file"
47+
},
48+
"visual": {
49+
"type": "object",
50+
"description": "Details about this visual",
51+
"properties": {
52+
"description": {
53+
"type": "string",
54+
"description": "What does this visual do?"
55+
},
56+
"name": {
57+
"type": "string",
58+
"description": "Internal visual name"
59+
},
60+
"displayName": {
61+
"type": "string",
62+
"description": "A friendly name"
63+
},
64+
"externals": {
65+
"type": "array",
66+
"description": "External files (such as JavaScript) that you would like to include"
67+
},
68+
"guid": {
69+
"type": "string",
70+
"description": "Unique identifier for the visual"
71+
},
72+
"visualClassName": {
73+
"type": "string",
74+
"description": "Class of your IVisual"
75+
},
76+
"icon": {
77+
"type": "string",
78+
"description": "Icon path"
79+
},
80+
"version": {
81+
"type": "string",
82+
"description": "Visual version"
83+
},
84+
"gitHubUrl": {
85+
"type": "string",
86+
"description": "Url to the github repository for this visual"
87+
},
88+
"supportUrl": {
89+
"type": "string",
90+
"description": "Url to the support page for this visual"
91+
}
92+
}
93+
}
94+
}
95+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.tmp
2+
dist/

.npmignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
typings
2+
node_modules
3+
.DS_Store
4+
.tmp
5+
dist

.vscode/launch.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.1.0",
3+
"configurations": [
4+
{
5+
"name": "Debugger",
6+
"type": "chrome",
7+
"request": "attach",
8+
"port": 9222,
9+
"sourceMaps": true,
10+
"webRoot": "${cwd}/"
11+
}
12+
]
13+
}

.vscode/settings.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"editor.tabSize": 4,
3+
"editor.insertSpaces": true,
4+
"files.eol": "\n",
5+
"files.watcherExclude": {
6+
"**/.git/objects/**": true,
7+
"**/node_modules/**": true,
8+
".tmp": true
9+
},
10+
"files.exclude": {
11+
".tmp": true
12+
},
13+
"search.exclude": {
14+
".tmp": true,
15+
"typings": true
16+
},
17+
"json.schemas": [
18+
{
19+
"fileMatch": [
20+
"/pbiviz.json"
21+
],
22+
"url": "./.api/v1.1.0/schema.pbiviz.json"
23+
},
24+
{
25+
"fileMatch": [
26+
"/capabilities.json"
27+
],
28+
"url": "./.api/v1.1.0/schema.capabilities.json"
29+
}
30+
]
31+
}

assets/icon.png

1.13 KB
Loading

capabilities.json

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"dataRoles": [
3+
{
4+
"name": "Category",
5+
"kind": 0,
6+
"displayName": "Category"
7+
},
8+
{
9+
"name": "X",
10+
"kind": 1,
11+
"displayName": "X values"
12+
},
13+
{
14+
"name": "Y",
15+
"kind": 1,
16+
"displayName": "Y values"
17+
},
18+
{
19+
"name": "I",
20+
"kind": 1,
21+
"displayName": "Intensity"
22+
}
23+
],
24+
"dataViewMappings": [
25+
{
26+
"categorical": {
27+
"categories": {
28+
"for": {
29+
"in": "Category"
30+
}
31+
},
32+
"values": {
33+
"group": {
34+
"by": "Series",
35+
"select": [
36+
{
37+
"bind": {
38+
"to": "X"
39+
}
40+
},
41+
{
42+
"bind": {
43+
"to": "Y"
44+
}
45+
},
46+
{
47+
"bind": {
48+
"to": "I"
49+
}
50+
}
51+
]
52+
}
53+
}
54+
}
55+
}
56+
],
57+
"objects": {
58+
"settings": {
59+
"displayName": "Heatmap Settings",
60+
"properties": {
61+
"backgroundUrl": {
62+
"displayName": "Background Url",
63+
"type": {
64+
"text": true
65+
}
66+
},
67+
"toggle": {
68+
"displayName": "Enable",
69+
"type": {
70+
"bool": true
71+
}
72+
},
73+
"radius": {
74+
"displayName": "Radius",
75+
"type": {
76+
"numeric": true
77+
}
78+
},
79+
"blur": {
80+
"displayName": "Blur",
81+
"type": {
82+
"numeric": true
83+
}
84+
},
85+
"maxValue": {
86+
"displayName": "Max Intensity",
87+
"type": {
88+
"numeric": true
89+
}
90+
},
91+
"maxWidth": {
92+
"displayName": "Canvas Width",
93+
"type": {
94+
"numeric": true
95+
}
96+
},
97+
"maxHeight": {
98+
"displayName": "Canvas Height",
99+
"type": {
100+
"numeric": true
101+
}
102+
}
103+
}
104+
}
105+
}
106+
}

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "visual"
3+
}

pbiviz.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"visual": {
3+
"name": "heatmap",
4+
"displayName": "Heatmap",
5+
"guid": "PBI_CV_FCF70EF9_270E_4A52_913E_345CC4A8BFBA",
6+
"visualClassName": "Visual",
7+
"version": "2.0.0",
8+
"description": "The Heatmap Visual enables users to draw a heatmap overlay from a X, Y coordinate set on to an existing image. The user specify the image, and provide a data set of X, Y coordinates and optionally an intensity for each data point. The radius and the bluriness of the heatmap bubbles can be customized as well as the max value for the intensity.",
9+
"supportUrl": "http://powerbi.sjkp.dk/support",
10+
"gitHubUrl": "https://github.com/sjkp/heatmap"
11+
},
12+
"apiVersion": "1.1.0",
13+
"author": {
14+
"name": "SJKP",
15+
"email": "[email protected]"
16+
},
17+
"assets": {
18+
"icon": "assets/icon.png"
19+
},
20+
"externalJS": [],
21+
"style": "style/visual.less",
22+
"capabilities": "capabilities.json"
23+
}

0 commit comments

Comments
 (0)