This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "dataRoles": [ | |
| { | |
| "displayName": "Value", | |
| "name": "value", | |
| "kind": "Measure" | |
| } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "dataRoles": [ | |
| { | |
| "displayName": "Category Data", | |
| "name": "category", | |
| "kind": "Grouping" | |
| }, | |
| { | |
| "displayName": "Measure Data", | |
| "name": "measure", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Power BI Visual CLI | |
| * | |
| * Copyright (c) Microsoft Corporation | |
| * All rights reserved. | |
| * MIT License | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the ""Software""), to deal | |
| * in the Software without restriction, including without limitation the rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "compilerOptions": { | |
| "allowJs": true, | |
| "emitDecoratorMetadata": true, | |
| "experimentalDecorators": true, | |
| "target": "ES5", | |
| "sourceMap": true, | |
| "out": "./.tmp/build/visual.js" | |
| }, | |
| "files": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare namespace lfg { | |
| export function loadLiquidFillGauge(svg: any, value: any, settings: any): any; | |
| export function liquidFillGaugeDefaultSettings(): any; | |
| } | |
| declare module 'lfg' { | |
| export = lfg; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function loadLiquidFillGauge(element, value, config) { | |
| if(config == null) config = liquidFillGaugeDefaultSettings(); | |
| var gauge = element; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fillCircleGroup = gaugeGroup.append("g") | |
| .attr("clip-path", "url(" + location.href + "#clipWave" + element.className + ")"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module powerbi.extensibility.visual { | |
| export class Visual implements IVisual { | |
| private target: HTMLElement; | |
| private settings: VisualSettings; | |
| private svg: d3.Selection<SVGElement>; | |
| constructor(options: VisualConstructorOptions) { | |
| let svg = this.svg = d3.select(options.element) | |
| .append('svg').classed('liquidFillGauge', true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private svg: d3.Selection<SVGElement>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm i |