Skip to content

Instantly share code, notes, and snippets.

View jongio's full-sized avatar

Jon Gallant jongio

View GitHub Profile
{
"name": "visual",
"scripts":{
"postinstall":"npm run typings",
"typings":"node node_modules/typings/dist/bin.js i"
},
"devDependencies": {
"typings": "^1.3.2"
}
}
"typings/index.d.ts"
{
"globalDependencies": {
"d3": "registry:dt/d3#0.0.0+20160628065019"
}
}
git clone https://github.com/jongio/PowerBI-visuals-liquidFillGauge.git
pbivizpackage
pbiviz start
pbiviz new liquidFillGauge
/// <amd-dependency path="liquidFillGauge">
module powerbi.extensibility.visual {
export class Visual implements IVisual {
private target: HTMLElement;
private gauge: any;
private svg: Element;
constructor(options: VisualConstructorOptions) {
console.log('Visual constructor', options);
{
"compilerOptions": {
"allowJs": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "ES5",
"sourceMap": true,
"out": "./.tmp/build/visual.js"
},
"files": [
powershell -Command "(new-object net.webclient).DownloadFile('https://gist.githubusercontent.com/jongio/27d20821bbe9eaa5ce012feb181ea0e9/raw/2b655a3aadc777dc410b96214b8a297f2e81f99b/liquidFillGauge.d.ts', 'liquidFillGauge.d.ts')"