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
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
v-viig wrote: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
v-viig How do you store large json string in Format Pane? Based on my observation, text field for custom visuals only takes 250 characters. It would not be possible to store large json string in that. Is there some specific field in capabilities that allows us to store large json config string?