How to change size of chart widget enlarge popup window ?
Mayur,
In the Chart widgets Widget.js file find this function and adjust the width and height:
_createBigPreview<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="operator token">!</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>previewArgs<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">return</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN> <SPAN class="comment token">//60 75</SPAN> <SPAN class="keyword token">var</SPAN> windowWidth <SPAN class="operator token">=</SPAN> document<SPAN class="punctuation token">.</SPAN>body<SPAN class="punctuation token">.</SPAN>clientWidth<SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">var</SPAN> windowHeight <SPAN class="operator token">=</SPAN> document<SPAN class="punctuation token">.</SPAN>body<SPAN class="punctuation token">.</SPAN>clientHeight<SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">var</SPAN> margin <SPAN class="operator token">=</SPAN> <SPAN class="number token">20</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">var</SPAN> width <SPAN class="operator token">=</SPAN> windowWidth <SPAN class="operator token">-</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="operator token">*</SPAN> margin<SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">var</SPAN> height <SPAN class="operator token">=</SPAN> windowHeight <SPAN class="operator token">-</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="operator token">*</SPAN> margin<SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN>width <SPAN class="operator token"><</SPAN> <SPAN class="number token">100</SPAN> <SPAN class="operator token">||</SPAN> height <SPAN class="operator token"><</SPAN> <SPAN class="number token">100</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">return</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Mayur Sinh Robert Scheitlin, GISP Guys, can you please help me with the path for Widget.JS file here? I have tried below shown paths but in vain. And do we need to restart the ArcGIS server?
Secondly, is there a way we can change the Chart Size as well not just the Pop Up Window size?
Paths:
Appreciate any inputs. TIA!
Hi Robert,
I changed the height and width. Many thanks
Thanks for reply and sorry for the confusion.
We have the two option in chart panel 1. settings & 2. Enlarge window
When you click on enlarge button (zoomin icon), it enlarge the window in bigger size and display the chart in it, I want to change the size of that enlarge window.
Many thanks Robert
I am a little confused you say enlarge the chart widgets popup window. Do you mean the widgets panel that the chart is in? A popup in the WAB would means the window that appears when you click on a feature that has popups configured in the map.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.