Forum Discussion

bhavesh-jadav's avatar
8 years ago
Solved

Power BI Custom Visual Storing Properties/Format Data

Hello there,   As of my knowledge, if you want to add some property/format settings for visual that user can change, then you would add it to the format pane from where user can change properties/f...
  • v-viig's avatar
    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:

    1. Define properties in objects property of capabilities.json (Sankey example)
    2. Parse properties from a dataView for each update to restore the desired state of a custom visual
    3. Do not enumerate such properties in enumerateObjectInstances
    4. To keep settings your visual should call persistProperties method (Sankey example)

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]

     

     

  • v-viig's avatar
    v-viig
    7 years ago

    Just make you div transparent to inherit background color of parent element.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]