<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue while showing column chart in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-while-showing-column-chart/m-p/351264#M32538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are unable to upgrade to 4.x try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the Info Window try removing the code that sets the Info Window as the default popup.&amp;nbsp; Once you've done that you will be using the Popup and can take a look at the Popup chart sample here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/popup_chart.html" title="https://developers.arcgis.com/javascript/3/jssamples/popup_chart.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Popup | ArcGIS API for JavaScript 3.32&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; infoWindow &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;InfoWindow&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; domConstruct&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"div"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
infoWindow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;startup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:30:51 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2021-12-11T16:30:51Z</dc:date>
    <item>
      <title>Issue while showing column chart</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-while-showing-column-chart/m-p/351262#M32536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to show column chart in pop-up window of map click. I am not getting any error message also in console.&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt; &amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Info Window with Chart&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.32/dijit/themes/claro/claro.css"&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.32/esri/css/esri.css"&amp;gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html, body, #map {&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; margin: 0;&lt;BR /&gt; padding: 0;&lt;BR /&gt; }&lt;BR /&gt; .chart {&lt;BR /&gt; width:200px;&lt;BR /&gt; height:200px;&lt;BR /&gt; padding:0px !important;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;BR /&gt; &amp;lt;script src="https://js.arcgis.com/3.32/"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; var map;&lt;BR /&gt; // Try other themes: Julie, CubanShirts, PrimaryColors, Charged, BlueDusk, Bahamation, Harmony, Shrooms&lt;BR /&gt; var theme = "Wetland";&lt;BR /&gt; require([&lt;BR /&gt; "esri/map", "esri/layers/FeatureLayer",&lt;BR /&gt; "esri/dijit/InfoWindow", "esri/InfoTemplate",&lt;BR /&gt; "esri/symbols/SimpleFillSymbol", "esri/renderers/SimpleRenderer",&lt;BR /&gt; "dijit/layout/ContentPane", "dijit/layout/TabContainer",&lt;BR /&gt; "dojox/charting/Chart2D", "dojox/charting/plot2d/Columns",&lt;BR /&gt; "dojox/charting/action2d/Highlight", "dojox/charting/action2d/MoveSlice", "dojox/charting/action2d/Tooltip",&lt;BR /&gt; "dojox/charting/themes/MiamiNice",&lt;BR /&gt; "dojo/dom-construct", "dojo/dom-class",&lt;BR /&gt; "dojo/number", "dojo/domReady!"&lt;BR /&gt; ], function(&lt;BR /&gt; Map, FeatureLayer,&lt;BR /&gt; InfoWindow, InfoTemplate,&lt;BR /&gt; SimpleFillSymbol, SimpleRenderer,&lt;BR /&gt; ContentPane, TabContainer,&lt;BR /&gt; Chart2D, Columns,&lt;BR /&gt; Highlight, MoveSlice, Tooltip,&lt;BR /&gt; MiamiNice,&lt;BR /&gt; domConstruct, domClass,&lt;BR /&gt; number, parser&lt;BR /&gt; ) {&lt;BR /&gt; // Use the info window instead of the popup.&lt;BR /&gt; var infoWindow = new InfoWindow(null, domConstruct.create("div"));&lt;BR /&gt; infoWindow.startup();&lt;/P&gt;&lt;P&gt;map = new Map("map", {&lt;BR /&gt; basemap: "streets",&lt;BR /&gt; center: [-113.405, 43.521],&lt;BR /&gt; infoWindow: infoWindow,&lt;BR /&gt; zoom: 6&lt;BR /&gt; });&lt;BR /&gt; map.infoWindow.resize(275, 275);&lt;/P&gt;&lt;P&gt;var template = new esri.InfoTemplate();&lt;BR /&gt; // Flag icons are from http://twitter.com/thefella, released under creative commons.&lt;BR /&gt; template.setTitle("&amp;lt;b&amp;gt;&amp;lt;img src='flags/${STATE_ABBR}.png'&amp;gt; ${STATE_NAME}&amp;lt;/b&amp;gt;");&lt;BR /&gt; template.setContent(getWindowContent);&lt;/P&gt;&lt;P&gt;var statesLayer = new FeatureLayer("https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5", {&lt;BR /&gt; mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt; infoTemplate: template,&lt;BR /&gt; outFields: ["*"]&lt;BR /&gt; });&lt;BR /&gt; var symbol = new SimpleFillSymbol();&lt;BR /&gt; statesLayer.setRenderer(new SimpleRenderer(symbol));&lt;/P&gt;&lt;P&gt;map.addLayer(statesLayer);&lt;/P&gt;&lt;P&gt;function getWindowContent(graphic) {&lt;BR /&gt; // Make a tab container.&lt;BR /&gt; var tc = new TabContainer({&lt;BR /&gt; style: "width:100%;height:100%;"&lt;BR /&gt; }, domConstruct.create("div"));&lt;/P&gt;&lt;P&gt;// Display attribute information.&lt;BR /&gt; var cp1 = new ContentPane({&lt;BR /&gt; title: "Details",&lt;BR /&gt; content: "&amp;lt;a target='_blank' href='https://en.wikipedia.org/wiki/" +&lt;BR /&gt; graphic.attributes.STATE_NAME + "'&amp;gt;Wikipedia Entry&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Median Age: " +&lt;BR /&gt; graphic.attributes.MED_AGE + "&amp;lt;br&amp;gt;Median Age (Male): " +&lt;BR /&gt; graphic.attributes.MED_AGE_M + "&amp;lt;br&amp;gt;Median Age (Female): " +&lt;BR /&gt; graphic.attributes.MED_AGE_F&lt;BR /&gt; });&lt;BR /&gt; // Display a dojo pie chart for the male/female percentage.&lt;BR /&gt; var cp2 = new ContentPane({&lt;BR /&gt; title: "Pie Chart"&lt;BR /&gt; });&lt;BR /&gt; tc.addChild(cp1);&lt;BR /&gt; tc.addChild(cp2);&lt;/P&gt;&lt;P&gt;// Create the chart that will display in the second tab.&lt;BR /&gt; var c = domConstruct.create("div", {&lt;BR /&gt; id: "demoChart"&lt;BR /&gt; }, domConstruct.create("div"));&lt;BR /&gt; var chart = new Chart2D(c);&lt;BR /&gt; domClass.add(chart, "chart");&lt;/P&gt;&lt;P&gt;// Apply a color theme to the chart.&lt;BR /&gt; chart.setTheme(MiamiNice);&lt;BR /&gt; chart.addPlot("default", {&lt;BR /&gt; type: "Columns",&lt;BR /&gt; markers: true,&lt;BR /&gt; gap: 5&lt;BR /&gt; });&lt;BR /&gt; tc.watch("selectedChildWidget", function(name, oldVal, newVal){&lt;BR /&gt; if ( newVal.title === "Columns" ) {&lt;BR /&gt; chart.resize(180,180);&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// Calculate percent male/female.&lt;BR /&gt; var total = graphic.attributes.POP2000;&lt;BR /&gt; var male = number.round(graphic.attributes.MALES / total * 100, 2);&lt;BR /&gt; var female = number.round(graphic.attributes.FEMALES / total * 100, 2);&lt;BR /&gt; chart.addAxis("x");&lt;BR /&gt; chart.addAxis("y", { vertical: true, fixLower: "major", fixUpper: "major" });&lt;BR /&gt; chart.addSeries("PopulationSplit", [{&lt;BR /&gt; x:0,&lt;BR /&gt; y: male,&lt;BR /&gt; tooltip: male,&lt;BR /&gt; text: "Male"&lt;BR /&gt; }, {&lt;BR /&gt; x:0,&lt;BR /&gt; y: female,&lt;BR /&gt; tooltip: female,&lt;BR /&gt; text: "Female"&lt;BR /&gt; }]);&lt;BR /&gt; //highlight the chart and display tooltips when you mouse over a slice.&lt;BR /&gt; new Highlight(chart, "default");&lt;BR /&gt; new Tooltip(chart, "default");&lt;BR /&gt; new MoveSlice(chart, "default");&lt;/P&gt;&lt;P&gt;cp2.set("content", chart.node);&lt;BR /&gt; return tc.domNode;&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body class="claro"&amp;gt;&lt;BR /&gt; &amp;lt;div id="map"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 18:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-while-showing-column-chart/m-p/351262#M32536</guid>
      <dc:creator>ShaikhRizuan</dc:creator>
      <dc:date>2020-06-05T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while showing column chart</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-while-showing-column-chart/m-p/351263#M32537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If you want to upgrade to 4x, here is a really nice sample that shows how to use various elements in a popup:&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Flatest%2Fsample-code%2Fpopup-multipleelements%2Findex.html" rel="nofollow" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;Multiple popup elements | ArcGIS API for JavaScript 4.15&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 22:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-while-showing-column-chart/m-p/351263#M32537</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-06-09T22:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while showing column chart</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-while-showing-column-chart/m-p/351264#M32538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are unable to upgrade to 4.x try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the Info Window try removing the code that sets the Info Window as the default popup.&amp;nbsp; Once you've done that you will be using the Popup and can take a look at the Popup chart sample here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/popup_chart.html" title="https://developers.arcgis.com/javascript/3/jssamples/popup_chart.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Popup | ArcGIS API for JavaScript 3.32&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; infoWindow &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;InfoWindow&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; domConstruct&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"div"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
infoWindow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;startup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-while-showing-column-chart/m-p/351264#M32538</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-11T16:30:51Z</dc:date>
    </item>
  </channel>
</rss>

