Forum Discussion
Power BI Custom Visual Storing Properties/Format Data
- 8 years ago
Inforgraphic Designer keeps advanced settings in Format Panel like other options but such advanced options are hidden for users.
Settings are kept as a JSON string.
To keep settings in Format Panel and hide it for user you should:
- Define properties in objects property of capabilities.json (Sankey example)
- Parse properties from a dataView for each update to restore the desired state of a custom visual
- Do not enumerate such properties in enumerateObjectInstances
- To keep settings your visual should call persistProperties method (Sankey example)
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- 7 years ago
Just make you div transparent to inherit background color of parent element.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Predefined Format Panel groups such as Title and Background are not available for Custom Visuals.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Okay. So we couldn't able to access those values from our custom visuals.
- v-viig7 years agoCommunity Champion
Right. It is not possible.
Why do you need these options?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Anonymous7 years agoNot applicable
Based on those values, we planned to change the particular element (DIV) background in our custom visuals.
- v-viig7 years agoCommunity Champion
Just make you div transparent to inherit background color of parent element.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals