InfoWindow/PopupTemplate Chart Resizing

863
1
07-17-2013 10:27 AM
JohnWatson4
New Contributor II
Considering the sample code located at:
https://developers.arcgis.com/en/javascript/jssamples/popup_chart.html

The chart which is defined in the mediaInfo portion of the PopupTemplate fails to resize when the Popup is maximized or resized.

Does anyone know how to make such a chart resize?
0 Kudos
1 Reply
JonathanUihlein
Esri Regular Contributor
I know that the JSAPI uses a Dojo Chart for that specific example (http://dojotoolkit.org/documentation/tutorials/1.9/charting/).

You have two realistic options:

1) Make the charts manually/programmatically so you have full control of the styling and behavior

2) Change the current CSS of the chart to auto-expand when the infoWindow is maximized (the chart is made with SVG). This option feels like much more work than option 1.


Documentation:
https://developers.arcgis.com/en/javascript/jsapi/popuptemplate-amd.html
https://developers.arcgis.com/en/javascript/jshelp/intro_popuptemplate.html
https://developers.arcgis.com/en/javascript/jshelp/intro_customizepopup.html

Bonus: Dojo Themes
http://download.dojotoolkit.org/release-1.5.0/dojo-release-1.5.0/dojox/charting/tests/theme_preview....
0 Kudos