Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ysapiyev
Responsive Resident
Responsive Resident

i have a problem with resizing my visual

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?

1 ACCEPTED SOLUTION
ysapiyev
Responsive Resident
Responsive Resident

@v-viig,

 

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.

View solution in original post

4 REPLIES 4
v-viig
Community Champion
Community Champion

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

pbicvsupport@microsoft.com

ysapiyev
Responsive Resident
Responsive Resident

@v-viig,

 

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.

@ysapiyev,

 

By the way, to help close this thread, you may accept solution. Your contribution is highly appreciated.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft,

 

No problem, this forum is very helpful for me, as I am developing custom visuals

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.