Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hey!
I'm trying to use custom properties in my visual but they won't show in the GUI. I don't know what is missing, following is the code I'm using for the properties:
capabilities.json:
"objects": {
"general": {
"displayName": "General",
"properties": {
"filter": {
"type": {
"filter": true
}
}
}
},
"dataPoint": {
"displayName": "Graph Settings",
"properties": {
"textSize": {
"displayName": "Text Size",
"type": {
"formatting": {
"fontSize": true
}
}
},
"filterSelfLoops": {
"displayName": "Filter selfloops",
"type": {
"bool": true
}
},
"useMultipleProcesses": {
"displayName": "Use multiple Processes",
"type": {
"bool": true
}
}
}
}
}visual.ts:
/**
* Interface for Flowchart Settings.
*
* @interface
* @property {} dataPoint - textSize => Change the fontsize.
* - filterSelfLoops => Activate to disable selfloops.
* - useMultipleProcesses => Active if you want to use multiple Processes.
*
*/
interface FlowchartSettings {
dataPoint: {
textSize: string;
filterSelfLoops: boolean;
useMultipleProcesses: boolean;
};
}
export class Visual implements IVisual {
private host: IVisualHost;
.
.
.
private flowChartSettings: FlowchartSettings; public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstanceEnumeration {
let objectName = options.objectName;
let objectEnumeration: VisualObjectInstance[] = [];
switch (objectName) {
case 'dataPoint':
objectEnumeration.push({
objectName: objectName,
properties: {
textSize: this.flowChartSettings.dataPoint.textSize,
filterSelfLoops: this.flowChartSettings.dataPoint.filterSelfLoops,
useMultipleProcesses: this.flowChartSettings.dataPoint.useMultipleProcesses,
},
selector: null
});
}
return objectEnumeration;
}
Thanks in advance for your help,
lschroth
Solved! Go to Solution.
What value is in this.flowChartSettings? Do you parse values to fill FlowchartSettings interface?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Code looks good. Have you tried to restart pbiviz start and refresh the web page?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Yes I tried to restart the visual, I also tried it in different Browsers and the Desktop Version. I'm running the latest stable API Version (1.11.0).
Do you have any other ideas why it's not working?
What value is in this.flowChartSettings? Do you parse values to fill FlowchartSettings interface?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Well that helped.. I didn't save the settings to this.flowChartSettings, I accidently saved it to a new variable flowChartSettings.
And so this.flowChartSettings was undefined when it was used in the enumerateObjectInstaces function.
Thanks for your time!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |