Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
I am trying to wrap two custom visuals into one custom visual. Similar to one shown here: https://plotly.com/javascript/subplots/#subplots-with-shared-axes
In the visual, I am trying to update, the newPlot function accepts layout object and not dynamic object. And as per the example in the above link, I am trying to set the grid property of layout object which does not exist in the layout object that I am trying to pass. (Image attached below). Also,tried passing a dynamic object, but the newPlot function does not accept as opposed to what is shown in the above link.
Can someone help on:
1. How do we pass dynamic object to the newPlot function?
2. Or how do we set the grid property of the layout object?
Thanks in advance!
Hi @Anonymous ,
See if it will help you:
https://docs.microsoft.com/zh-cn/power-bi/developer/visuals/selection-api
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |