<?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 Why does choropleth map does not render in Dashboard Studio but it does in Classic Dashboards? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-choropleth-map-does-not-render-in-Dashboard-Studio-but/m-p/655064#M53861</link>
    <description>&lt;P&gt;I need to plot a world map and color the countries based on the count and display it on the Studio dashboard. This is my query.&lt;/P&gt;
&lt;PRE&gt;...&amp;lt;ommitted&amp;gt; AS iso2&lt;BR /&gt;| search iso2=*&lt;BR /&gt;| stats count by iso2&lt;BR /&gt;| lookup geo_attr_countries iso2 OUTPUT country&lt;BR /&gt;| fields+ count, country&lt;BR /&gt;| geom geo_countries featureIdField="country"&lt;/PRE&gt;
&lt;P&gt;This works fine on the search page. When Visualization=Choropleth Map is chosen it is plotted correctly.&amp;nbsp; I then add it on a Classic Dashboard type dashboard, which works fine.&lt;/P&gt;
&lt;P&gt;But when I add the same query to a Dashboard Studio dashboard, it doesn't work. I get this error.&lt;/P&gt;
&lt;PRE&gt;Cannot read properties of undefined (reading 'warn')&lt;/PRE&gt;
&lt;P&gt;How to fix this?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 20:00:44 GMT</pubDate>
    <dc:creator>cyriac</dc:creator>
    <dc:date>2023-08-21T20:00:44Z</dc:date>
    <item>
      <title>Why does choropleth map does not render in Dashboard Studio but it does in Classic Dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-choropleth-map-does-not-render-in-Dashboard-Studio-but/m-p/655064#M53861</link>
      <description>&lt;P&gt;I need to plot a world map and color the countries based on the count and display it on the Studio dashboard. This is my query.&lt;/P&gt;
&lt;PRE&gt;...&amp;lt;ommitted&amp;gt; AS iso2&lt;BR /&gt;| search iso2=*&lt;BR /&gt;| stats count by iso2&lt;BR /&gt;| lookup geo_attr_countries iso2 OUTPUT country&lt;BR /&gt;| fields+ count, country&lt;BR /&gt;| geom geo_countries featureIdField="country"&lt;/PRE&gt;
&lt;P&gt;This works fine on the search page. When Visualization=Choropleth Map is chosen it is plotted correctly.&amp;nbsp; I then add it on a Classic Dashboard type dashboard, which works fine.&lt;/P&gt;
&lt;P&gt;But when I add the same query to a Dashboard Studio dashboard, it doesn't work. I get this error.&lt;/P&gt;
&lt;PRE&gt;Cannot read properties of undefined (reading 'warn')&lt;/PRE&gt;
&lt;P&gt;How to fix this?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 20:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-choropleth-map-does-not-render-in-Dashboard-Studio-but/m-p/655064#M53861</guid>
      <dc:creator>cyriac</dc:creator>
      <dc:date>2023-08-21T20:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why does choropleth map does not render in Dashboard Studio but it does in Classic Dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-choropleth-map-does-not-render-in-Dashboard-Studio-but/m-p/655090#M53868</link>
      <description>&lt;H6&gt;&amp;nbsp;&lt;/H6&gt;&lt;H6&gt;Know your data columns&lt;BR /&gt;When you create a search to generate a choropleth map, the search will have a column of fields, usually states, countries, or regions. This column is usually equivalent to the setting primary[0], the first column of results. There should be at least one more column that relates a numeric value to each field in the first column (color for NULL values can also be configured). This is often, but not always, the second column in the search results, equivalent to the setting primary[1]. If the number values you want to use are in a different column, use the equivalent setting primary[n-1] where n equals the number of the column.&lt;/H6&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documentation - &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.0/DashStudio/mapsChor" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.0/DashStudio/mapsChor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As per this, I modified my query to the one below and it worked&lt;/P&gt;&lt;PRE&gt;| fields+ country, count&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 21:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-choropleth-map-does-not-render-in-Dashboard-Studio-but/m-p/655090#M53868</guid>
      <dc:creator>cyriac</dc:creator>
      <dc:date>2023-08-21T21:58:33Z</dc:date>
    </item>
  </channel>
</rss>

