Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DdanB
New Member

Custom Variables in Debug Visual

Do these work?  I've tried copying the sample from the barchart tutorial (https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/StaticObjects.md) yet the items i add  never appear under the "format" pane.  Am i missing something?  My capabilities.json looks like this (below) and i was expecting to see an 'Enable Axis' option under formatting on the right?  Apologies if i have missed something.

 

{
"dataRoles": [
{
"displayName": "Category Data",
"name": "category",
"kind": 0
},
{
"displayName": "Measure Data",
"name": "measure",
"kind": 1
}
],
"dataViewMappings": [
{
"conditions": [
{
"category": {
"max": 1
},
"measure": {
"max": 1
}
}
],
"categorical": {
"categories": {
"for": {
"in": "category"
}
},
"values": {
"select": [
{
"bind": {
"to": "measure"
}
}
]
}
}
}
],
"objects": {
"enableAxis": {
"displayName": "Enable Axis",
"properties": {
"show": {
"displayName": "Enable Axis",
"type": { "bool": true }
}
}
}
}
}
 

6 REPLIES 6
DdanB
New Member

Appears to be Power BI Service debug visual only, works if i package to desktop, sorry forgot to mention that.

Hey Ddan,

 

i got this failure too. It works to last Friday.

Do you try it with the normal sample example from here: https://github.com/Microsoft/PowerBI-visuals-sampleBarChart

 

That do not work for me.

 

Sometimes it helps to restart the Browser or the PBIVIZ.

 

Addendum: Do you implement the BarChartSettings and the  EnumerationObjectInstances Method?

 

Greetings Mcburn

Thanks Mcburn, yes  I've implemented them both.  Works ok if i package it and put it in desktop so i think its a debug visual thing.

@DdanB,

 

I see there is an open issue at https://github.com/Microsoft/PowerBI-visuals-tools/issues/43. You may give feedback at https://ideas.powerbi.com/forums/265200-power-bi as well.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

In the moment i do not get the objects in dataViews[0].metadata.

 

But when i package my project i see the objects in the format frame, the objects are still empty.

It is the same failure with the example project.

 

Iam really confused on Friday everything was ok.

watching this as I have the same issue, any custom objects I can't get to show up

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.