Forum Discussion
Modifying parseSettings/VisualSettings
Hello,
A newly created visual comes with a static parseSettings method, which calls VisualSettings.parse(). If I inspect the return value of this call then it is a VisualSettings instance with a property called "dataPointSettings", which itself has properties like "defaultColor", "fontSize", etc. My question is where are these defined? I'd like to be able to modify these values but I can't find any class called VisualSettings in my source code.
Thank you.
9 Replies
- v-chuncz-msftCommunity Support
- AnonymousNot applicable
Hi callum v-chuncz-msft
I'm also trying to develop a custom visual and is stuck at this particular point.
how did you retrieve property values from the dataview and how did you populate the property pane afterwards?
Did you use enumerateObjectInstances ?- v-viigCommunity Champion
Hello Anonymous
Yes, you should implement enumerateObjectInstances in order to update values at the format panel.
Do you have VisualSettings class in your csutom visual?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- AnonymousNot applicable
hello v-viig
Yes,I am using VisualSettings class.
Should i use the switch statement then.
I'm a little confused as this template is slightly different from the one in the tutorial.