Skip to content

Commit

Permalink
v1.0.4 - formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Navnada committed Feb 6, 2018
1 parent 9f2e4fe commit 92dafcd
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 58 deletions.
63 changes: 60 additions & 3 deletions capabilities.json
Expand Up @@ -12,20 +12,75 @@
}
],
"objects": {
"TreeViz": {
"TreeVizSettings": {
"displayName": "TreeViz settings",
"properties": {
"showMeasure": {
"displayName": "Show measure",
"type": {
"bool": true
"bool": true
}
},
"showLimit": {
"displayName": "Children limit",
"type": {
"numeric": true
}
},
"defaultDrillDown": {
"displayName": "Default DrillDown",
"type": {
"numeric": true
}
},
"drillBlank": {
"displayName": "Drill into blanks",
"type": {
"bool": true
}
},
"drillEmpty": {
"displayName": "Drill into empty",
"type": {
"bool": true
}
}
}
},
"TreeVizFormat": {
"displayName": "TreeViz formatting",
"properties": {
"boxbg": {
"displayName": "Box background",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"lines": {
"displayName": "Lines",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"rx": {
"displayName": "Smaller radius",
"type": {
"numeric": true
}
},
"Rx": {
"displayName": "Bigger radius",
"type": {
"numeric": true
}
}
}
},
Expand Down Expand Up @@ -84,7 +139,9 @@
"in": "category"
},
"dataReductionAlgorithm": {
"top": {}
"top": {
"count": 10000
}
}
},
"values": {
Expand Down
4 changes: 2 additions & 2 deletions pbiviz.json
Expand Up @@ -2,9 +2,9 @@
"visual": {
"name": "treeviz",
"displayName": "treeviz",
"guid": "treeviz2DC46116C4554E20B59DD525EA4DC972",
"guid": "treeviz2DC46116C4554E20B59DD525EA4DC973",
"visualClassName": "Visual",
"version": "1.0.2",
"version": "1.0.4",
"description": "Custom visual that transforms data into tree structure.",
"supportUrl": "https://github.com/AC-PAS-NAV3-dev01/PowerBI-visuals-TreeViz",
"gitHubUrl": "https://github.com/AC-PAS-NAV3-dev01/PowerBI-visuals-TreeViz"
Expand Down
20 changes: 19 additions & 1 deletion src/settings.ts
Expand Up @@ -3,13 +3,31 @@ module powerbi.extensibility.visual {
import DataViewObjectsParser = powerbi.extensibility.utils.dataview.DataViewObjectsParser;

export class VisualSettings extends DataViewObjectsParser {
public TreeViz: TreeVizSettings = new TreeVizSettings();
public TreeVizSettings: TreeVizSettings = new TreeVizSettings();
public TreeVizFormat: TreeVizFormat = new TreeVizFormat();
}

export class TreeVizSettings {
// Show measures and bars
public showMeasure: boolean = true;
// Drill into blank values
public drillBlank: boolean = true;
// Drill into empty values
public drillEmpty: boolean = true;
// Limit number of children
public showLimit: number = 5;
// Default drilldown
public defaultDrillDown: number = 3;
}

export class TreeVizFormat {
// Box background color
public boxbg: string = "#d0eef7";
// Box border color
public lines: string = "#475052";
// Radius of data values
public rx: number = 0;
// Radius of substitution values
public Rx: number = 30;
}
}

0 comments on commit 92dafcd

Please sign in to comment.