Forum Discussion
Anonymous
9 years agoNot applicable
Unable to read default color object
In my capabilities.json I defind an object called color. I'm trying to define it inside my custom visual using : startingColor: getValue<string>(options.dataViews[0].metad...
satishr
8 years agoHelper III
Can you please let me know how to do it? How can I check whether the metadata available or not?
v-viig
8 years agoCommunity Champion
Can you share implementation of getValue function that you use to get color from the metadata?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- satishr8 years agoHelper III
I figured it out. Thanks. I'm using the condition if (options.dataViews[0].metadata.objects) to check whether the user has made any changes in the format pane or not.