Merge pull request #3 from domoritz/install
Installation instructions, screenshot, update
This commit is contained in:
Коммит
e806fe1f57
|
@ -81,6 +81,12 @@ declare namespace powerbi {
|
|||
/** Should be used by visuals to trace errors in PBI telemetry. */
|
||||
Error = 3,
|
||||
}
|
||||
const enum FilterAction {
|
||||
/** Merging filter into existing filters. */
|
||||
merge = 0,
|
||||
/** removing existing filter. */
|
||||
remove = 1,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1335,7 +1341,7 @@ declare module powerbi {
|
|||
}
|
||||
|
||||
/**
|
||||
* Change Log Version 1.7.0
|
||||
* Change Log Version 1.8.0
|
||||
*/
|
||||
|
||||
declare module powerbi.extensibility.visual {
|
||||
|
@ -1359,11 +1365,13 @@ declare module powerbi.extensibility.visual {
|
|||
createSelectionManager: () => ISelectionManager;
|
||||
colorPalette: IColorPalette;
|
||||
persistProperties: (changes: VisualObjectInstancesToPersist) => void;
|
||||
applyJsonFilter: (filter: IFilter, objectName: string, propertyName: string) => void;
|
||||
applyJsonFilter: (filter: IFilter, objectName: string, propertyName: string, action: FilterAction) => void;
|
||||
tooltipService: ITooltipService;
|
||||
telemetry: ITelemetryService;
|
||||
locale: string;
|
||||
allowInteractions: boolean;
|
||||
instanceId: string;
|
||||
refreshHostData: () => void;
|
||||
}
|
||||
|
||||
export interface VisualUpdateOptions extends extensibility.VisualUpdateOptions {
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"PBI_API_VERSION": "v1.7.0",
|
||||
"PBI_API_VERSION": "v1.8.0",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"dataRoles": {
|
||||
|
@ -686,10 +686,43 @@
|
|||
"type": {
|
||||
"description": "Describes what type of property this is and how it should be displayed to the user",
|
||||
"$ref": "#/definitions/valueType"
|
||||
},
|
||||
"rule": {
|
||||
"type": "object",
|
||||
"description": "Describes substitution rule that replaces property object, described inside the rule, to current property object that contains this rule",
|
||||
"$ref": "#/definitions/substitutionRule"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"substitutionRule": {
|
||||
"type": "object",
|
||||
"description": "Describes substitution rule that replaces property object, described inside the rule, to current property object that contains this rule",
|
||||
"properties": {
|
||||
"inputRole": {
|
||||
"type": "string",
|
||||
"description": "The name of role. If this role is set, the substitution will be applied"
|
||||
},
|
||||
"output": {
|
||||
"type": "object",
|
||||
"description": "Describes what exactly is necessary to replace",
|
||||
"properties": {
|
||||
"property": {
|
||||
"type": "string",
|
||||
"description": "The name of property object that will be replaced"
|
||||
},
|
||||
"selector": {
|
||||
"type": "array",
|
||||
"description": "The array of selector names. Usually, it contains only one selector -- 'Category'",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "The name of selector"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"sorting": {
|
||||
"type": "object",
|
||||
"description": "Specifies the default sorting behavior for the visual",
|
||||
|
@ -820,6 +853,92 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"fillRule" : {
|
||||
"type": "object",
|
||||
"description": "A color gradient that will be dispalyed to the user as a minimum (,medium) and maximum color pickers",
|
||||
"properties": {
|
||||
"linearGradient2": {
|
||||
"type": "object",
|
||||
"description": "Two color gradient",
|
||||
"properties": {
|
||||
"max": {
|
||||
"type": "object",
|
||||
"description": "Maximum color for gradient",
|
||||
"properties": {
|
||||
"color": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"min": {
|
||||
"type": "object",
|
||||
"description": "Minimum color for gradient",
|
||||
"properties": {
|
||||
"color": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nullColoringStrategy": {
|
||||
"type": "object",
|
||||
"description": "Null color strategy"
|
||||
}
|
||||
}
|
||||
},
|
||||
"linearGradient3": {
|
||||
"type": "object",
|
||||
"description": "Three color gradient",
|
||||
"properties": {
|
||||
"max": {
|
||||
"type": "object",
|
||||
"description": "Maximum color for gradient",
|
||||
"properties": {
|
||||
"color": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"min": {
|
||||
"type": "object",
|
||||
"description": "Minimum color for gradient",
|
||||
"properties": {
|
||||
"color": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mid": {
|
||||
"type": "object",
|
||||
"description": "Middle color for gradient",
|
||||
"properties": {
|
||||
"color": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nullColoringStrategy": {
|
||||
"type": "object",
|
||||
"description": "Null color strategy"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"formatting": {
|
||||
"type": "object",
|
||||
"description": "A numeric value that will be displayed to the user as a text input",
|
||||
|
@ -961,6 +1080,11 @@
|
|||
"fill"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"fillRule"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"formatting"
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"PBI_API_VERSION": "v1.7.0",
|
||||
"PBI_API_VERSION": "v1.8.0",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cranPackages": {
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"PBI_API_VERSION": "v1.7.0",
|
||||
"PBI_API_VERSION": "v1.8.0",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"apiVersion": {
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"PBI_API_VERSION": "v1.7.0",
|
||||
"PBI_API_VERSION": "v1.8.0",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"locale": {
|
||||
|
@ -40,7 +40,7 @@
|
|||
"ja-JP",
|
||||
"kk-KZ",
|
||||
"ko-KR",
|
||||
"it-LT",
|
||||
"lt-LT",
|
||||
"lv-LV",
|
||||
"ms-MY",
|
||||
"nb-NO",
|
||||
|
@ -64,4 +64,4 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +1,17 @@
|
|||
# PowerBi Custom Visual in Vega-Lite
|
||||
|
||||
![Screenshot](screenshot.png)
|
||||
|
||||
## Install
|
||||
|
||||
`npm install`
|
||||
First install necessary dependencies with `npm install`.
|
||||
Then run `npm run cert` and follow the instructions at https://github.com/Microsoft/PowerBI-visuals/blob/master/tools/CertificateAddOSX.md.
|
||||
|
||||
## Run
|
||||
|
||||
`npm start`
|
||||
Run `npm start` in a terminal.
|
||||
|
||||
The open PowerBI with developer mode enabled and create a developer visual.
|
||||
|
||||
## Update Vega
|
||||
|
||||
|
|
2699
libs/vega.js
2699
libs/vega.js
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
12
package.json
12
package.json
|
@ -7,16 +7,18 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"powerbi-visuals-utils-dataviewutils": "1.2.0",
|
||||
"vega": "^3.0.2",
|
||||
"vega-lite": "^2.0.0-rc3"
|
||||
"vega": "^3.0.7",
|
||||
"vega-lite": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tslint": "^5.7.0",
|
||||
"typescript": "^2.5.2"
|
||||
"powerbi-visuals-tools": "^1.8.1",
|
||||
"tslint": "^5.8.0",
|
||||
"typescript": "^2.6.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "pbiviz start",
|
||||
"build": "pbiviz package",
|
||||
"lint": "tslint tsconfig.json"
|
||||
"lint": "tslint tsconfig.json",
|
||||
"cert": "pbiviz --install-cert"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
"guid": "bar247013B6E51446149DBCA247B9C6BBBA",
|
||||
"visualClassName": "BarChart",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"supportUrl": "",
|
||||
"gitHubUrl": ""
|
||||
"description": "Sample Vega-Lite Wrapper as a PowerBi Custom Visual",
|
||||
"supportUrl": "https://github.com/Microsoft/vegalite-for-powerbi/issues",
|
||||
"gitHubUrl": "https://github.com/Microsoft/vegalite-for-powerbi"
|
||||
},
|
||||
"apiVersion": "1.7.0",
|
||||
"apiVersion": "1.8.0",
|
||||
"author": {
|
||||
"name": "Dominik Moritz",
|
||||
"email": "t-romor@microsoft.com"
|
||||
|
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 621 KiB |
|
@ -8,7 +8,7 @@
|
|||
"out": "./.tmp/build/visual.js"
|
||||
},
|
||||
"files": [
|
||||
".api/v1.7.0/PowerBI-visuals.d.ts",
|
||||
".api/v1.8.0/PowerBI-visuals.d.ts",
|
||||
"node_modules/powerbi-visuals-utils-dataviewutils/lib/index.d.ts",
|
||||
"src/settings.ts",
|
||||
"src/logger.ts",
|
||||
|
|
Загрузка…
Ссылка в новой задаче