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 nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
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.