I have created my custom visual. Added it to a report in https://app.powerbi.com/ and debuged it there.
Now it's time to add the visual to a report in PowerBI.
I created a package using pbiviz package.
Validating the package using pbiviz validate, all green, except warning "New API version is used".
Imports successfully the .pbiviz file into my report.
My visual have a strange default image and my visuals custom properties are not there etc.
To eliminate potentials PowerBI desktop problem, I publish my report.
The report in app.powerbi.com is there, and my custom visual is just as weird as in PowerBi desktop.
I then edited the report. Removing my custom visual. And added the pbiviz file to the report in PowerBi.com. Also added the debug version.
Picture below shows the .pbiviz version on top, and the debug version below.
I'm kind of stuck on this one so I'll appreciate any help.
Solved! Go to Solution.
This is strange.
Creating a brand new visual with these commands
pbiviz new stockVisual
No code is changed at all.
Opens powerBi.com and create a new report.
Adds the debug visual
Adds a new visual from the package dist\stockVisual.pbiviz.
Below is the result.
The debug visual are on the left, the stockVisual.pbiviz are on the right.
Why does not the stockVisual.pbiviz work?
Is there any option to leave data fields empty and eventually remove dataRoles from capabilities.json ? I am working on a totally static visual that doesn't need any data besides that entered with objects (Format tab).