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.
...<ommitted> AS iso2
| search iso2=*
| stats count by iso2
| lookup geo_attr_countries iso2 OUTPUT country
| fields+ count, country
| geom geo_countries featureIdField="country"
This works fine on the search page. When Visualization=Choropleth Map is chosen it is plotted correctly. I then add it on a Classic Dashboard type dashboard, which works fine.
But when I add the same query to a Dashboard Studio dashboard, it doesn't work. I get this error.
Cannot read properties of undefined (reading 'warn')
How to fix this?
Documentation - https://docs.splunk.com/Documentation/Splunk/9.1.0/DashStudio/mapsChor
As per this, I modified my query to the one below and it worked
| fields+ country, count
Documentation - https://docs.splunk.com/Documentation/Splunk/9.1.0/DashStudio/mapsChor
As per this, I modified my query to the one below and it worked
| fields+ country, count