March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
hello everyone,
I built visual with 10 rectangles in two rows using tutorial for creating visual with simple bar chart. in that tutorial, I used dynamic parameters for resizing every rectangle. however, when i resize visual, only last one gets resized. what can be the problem?
Solved! Go to Solution.
I solved this problem by changing structure of my code. Previously, I used structure from tutorial for barchart, but since my goal was different, I plotted rectangles, added them to array, and when I resize my visual, firstly, I remove them and plot again.
The problem might be in applying attributes and styles to the existing DOM elements.
Could you please share the code that renders rectangles?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I solved this problem by changing structure of my code. Previously, I used structure from tutorial for barchart, but since my goal was different, I plotted rectangles, added them to array, and when I resize my visual, firstly, I remove them and plot again.
By the way, to help close this thread, you may accept solution. Your contribution is highly appreciated.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
9 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
11 | |
3 | |
2 | |
2 | |
2 |