Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
How to dynamically add new objects in properties pane like the following screenshot (seen in donut chart), inside the enumerateObjectInstances method.
Hi @SriThiru,
It's hard to provide a targeted answer without knowing your choice of data view mapping and view model, but the high-level approach to this is that:
How to do this will very much depend on how you are intending to structure your data within the visual, and whether it is possible to retain the correct context against the data view that is sent to the visual by Power BI.
The easiest way to have a look and play with a working example would be to go through the sample bar chart visual and see what's being done to achieve the solution there. Specific points of interest in this codebase are:
Here's an additional post where the author has a correct setup and shows these three in context (but the problem was actually something else).
Hopefully this should help you get a little further. Good luck!
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Thanks @dm-p , for the detailed response, and the code reference, I'll try your suggestions.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |