<?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: Dashboard Studio - UK Map Visulisation in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-UK-Map-Visulisation/m-p/707824#M57925</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/65114"&gt;@madhav_dholakia&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In Simple XML, you can generate categorical choropleth maps with color-coded city boundaries:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tscroggins_1-1735667226738.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33970iFE4487C281140C3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tscroggins_1-1735667226738.png" alt="tscroggins_1-1735667226738.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tscroggins_1-1735667226738.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In Dashboard Studio, however, choropleth maps are limited to numerical distributions, e.g. OpenIssues by city, and the geospatial lookup geometry isn't always interpreted correctly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tscroggins_2-1735667239554.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33971iF18315D819F6ABB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tscroggins_2-1735667239554.png" alt="tscroggins_2-1735667239554.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tscroggins_2-1735667239554.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In both examples, I've used mapping data published by the&amp;nbsp;Office for National Statistics at&amp;nbsp;&lt;A href="https://geoportal.statistics.gov.uk" target="_blank"&gt;https://geoportal.statistics.gov.uk&lt;/A&gt;. Search for&amp;nbsp;&lt;STRONG&gt;BDY_TCITY DEC_2015&lt;/STRONG&gt; to download the corresponding KML file.&lt;/P&gt;&lt;P&gt;As a compromise, you can use a marker map to display color-coded markers at city centers by latitude and longitude:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tscroggins_0-1735667191274.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33969iEFB4A907E2731B17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tscroggins_0-1735667191274.png" alt="tscroggins_0-1735667191274.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tscroggins_0-1735667191274.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the source:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "visualizations": {
        "viz_KxsdmDQb": {
            "type": "splunk.map",
            "options": {
                "center": [
                    52.560559999999924,
                    -1.4702799999984109
                ],
                "zoom": 6,
                "layers": [
                    {
                        "type": "marker",
                        "dataColors": "&amp;gt; primary | seriesByName('Status') | matchValue(colorMatchConfig)",
                        "choroplethOpacity": 0.75,
                        "additionalTooltipFields": [
                            "Status",
                            "StoreID",
                            "City",
                            "OpenIssues"
                        ],
                        "latitude": "&amp;gt; primary | seriesByName('lat')",
                        "longitude": "&amp;gt; primary | seriesByName('lon')"
                    }
                ]
            },
            "context": {
                "colorMatchConfig": [
                    {
                        "match": "Dormant/Green",
                        "value": "#118832"
                    },
                    {
                        "match": "Warning/Amber",
                        "value": "#cba700"
                    },
                    {
                        "match": "Critical/Red",
                        "value": "#d41f1f"
                    }
                ]
            },
            "dataSources": {
                "primary": "ds_CtvaIPJ3"
            }
        }
    },
    "dataSources": {
        "ds_CtvaIPJ3": {
            "type": "ds.search",
            "options": {
                "query": "| makeresults format=csv data=\"StoreID,City,OpenIssues,Status,lat,lon\r\nStore 1,London,3,Critical/Red,51.507222,-0.1275\r\nStore 2,York,2,Warning/Amber,53.96,-1.08\r\nStore 3,Bristol,0,Dormant/Green,51.453611,-2.5975\r\nStore 4,Liverpool,1,Warning/Amber,53.407222,-2.991667\" \r\n| table StoreID City OpenIssues Status lat lon",
                "queryParameters": {
                    "earliest": "-24h@h",
                    "latest": "now"
                }
            },
            "name": "Choropleth map search"
        }
    },
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {}
                }
            }
        }
    },
    "inputs": {},
    "layout": {
        "type": "absolute",
        "options": {
            "width": 918,
            "height": 500,
            "display": "auto"
        },
        "structure": [
            {
                "item": "viz_KxsdmDQb",
                "type": "block",
                "position": {
                    "x": 0,
                    "y": 0,
                    "w": 918,
                    "h": 500
                }
            }
        ],
        "globalInputs": []
    },
    "description": "",
    "title": "eaw_store_status_ds"
}&lt;/LI-CODE&gt;&lt;P&gt;As a static workaround, the Choropleth SVG visualization allows you to upload a custom image, e.g. a stylized map of England and Wales, and define custom SVG boundaries and categorical colors. The Dashboard Studio documentation includes a basic tutorial at &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/DashStudio/mapsChorSVG" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/DashStudio/mapsChorSVG&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Dec 2024 17:54:37 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2024-12-31T17:54:37Z</dc:date>
    <item>
      <title>Dashboard Studio - UK Map Visulisation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-UK-Map-Visulisation/m-p/707575#M57898</link>
      <description>&lt;P&gt;Hello, I am looking to add a UK Map on dashboard studio to show number of open issues (ITSM Data) and RAG Status for Flagship Stores available in different cities like, London, York, Bristol, Liverpool etc.&lt;/P&gt;&lt;P&gt;My Search Output looks like,&lt;/P&gt;&lt;P&gt;StoreID, City, OpenIssues, Status&lt;BR /&gt;Store 1, London, 3, Critical/Red&lt;BR /&gt;Store 2, York, 2, Warning/Amber&lt;BR /&gt;Store 3, Bristol, 0, Dormant/Green&lt;BR /&gt;Store 4, Liverpool, 1, Warning/Amber&lt;/P&gt;&lt;P&gt;can someone please suggest if/how this can be done? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 12:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-UK-Map-Visulisation/m-p/707575#M57898</guid>
      <dc:creator>madhav_dholakia</dc:creator>
      <dc:date>2024-12-26T12:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio - UK Map Visulisation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-UK-Map-Visulisation/m-p/707824#M57925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/65114"&gt;@madhav_dholakia&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In Simple XML, you can generate categorical choropleth maps with color-coded city boundaries:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tscroggins_1-1735667226738.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33970iFE4487C281140C3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tscroggins_1-1735667226738.png" alt="tscroggins_1-1735667226738.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tscroggins_1-1735667226738.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In Dashboard Studio, however, choropleth maps are limited to numerical distributions, e.g. OpenIssues by city, and the geospatial lookup geometry isn't always interpreted correctly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tscroggins_2-1735667239554.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33971iF18315D819F6ABB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tscroggins_2-1735667239554.png" alt="tscroggins_2-1735667239554.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tscroggins_2-1735667239554.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In both examples, I've used mapping data published by the&amp;nbsp;Office for National Statistics at&amp;nbsp;&lt;A href="https://geoportal.statistics.gov.uk" target="_blank"&gt;https://geoportal.statistics.gov.uk&lt;/A&gt;. Search for&amp;nbsp;&lt;STRONG&gt;BDY_TCITY DEC_2015&lt;/STRONG&gt; to download the corresponding KML file.&lt;/P&gt;&lt;P&gt;As a compromise, you can use a marker map to display color-coded markers at city centers by latitude and longitude:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tscroggins_0-1735667191274.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33969iEFB4A907E2731B17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tscroggins_0-1735667191274.png" alt="tscroggins_0-1735667191274.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tscroggins_0-1735667191274.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the source:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "visualizations": {
        "viz_KxsdmDQb": {
            "type": "splunk.map",
            "options": {
                "center": [
                    52.560559999999924,
                    -1.4702799999984109
                ],
                "zoom": 6,
                "layers": [
                    {
                        "type": "marker",
                        "dataColors": "&amp;gt; primary | seriesByName('Status') | matchValue(colorMatchConfig)",
                        "choroplethOpacity": 0.75,
                        "additionalTooltipFields": [
                            "Status",
                            "StoreID",
                            "City",
                            "OpenIssues"
                        ],
                        "latitude": "&amp;gt; primary | seriesByName('lat')",
                        "longitude": "&amp;gt; primary | seriesByName('lon')"
                    }
                ]
            },
            "context": {
                "colorMatchConfig": [
                    {
                        "match": "Dormant/Green",
                        "value": "#118832"
                    },
                    {
                        "match": "Warning/Amber",
                        "value": "#cba700"
                    },
                    {
                        "match": "Critical/Red",
                        "value": "#d41f1f"
                    }
                ]
            },
            "dataSources": {
                "primary": "ds_CtvaIPJ3"
            }
        }
    },
    "dataSources": {
        "ds_CtvaIPJ3": {
            "type": "ds.search",
            "options": {
                "query": "| makeresults format=csv data=\"StoreID,City,OpenIssues,Status,lat,lon\r\nStore 1,London,3,Critical/Red,51.507222,-0.1275\r\nStore 2,York,2,Warning/Amber,53.96,-1.08\r\nStore 3,Bristol,0,Dormant/Green,51.453611,-2.5975\r\nStore 4,Liverpool,1,Warning/Amber,53.407222,-2.991667\" \r\n| table StoreID City OpenIssues Status lat lon",
                "queryParameters": {
                    "earliest": "-24h@h",
                    "latest": "now"
                }
            },
            "name": "Choropleth map search"
        }
    },
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {}
                }
            }
        }
    },
    "inputs": {},
    "layout": {
        "type": "absolute",
        "options": {
            "width": 918,
            "height": 500,
            "display": "auto"
        },
        "structure": [
            {
                "item": "viz_KxsdmDQb",
                "type": "block",
                "position": {
                    "x": 0,
                    "y": 0,
                    "w": 918,
                    "h": 500
                }
            }
        ],
        "globalInputs": []
    },
    "description": "",
    "title": "eaw_store_status_ds"
}&lt;/LI-CODE&gt;&lt;P&gt;As a static workaround, the Choropleth SVG visualization allows you to upload a custom image, e.g. a stylized map of England and Wales, and define custom SVG boundaries and categorical colors. The Dashboard Studio documentation includes a basic tutorial at &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/DashStudio/mapsChorSVG" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/DashStudio/mapsChorSVG&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 17:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-UK-Map-Visulisation/m-p/707824#M57925</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-12-31T17:54:37Z</dc:date>
    </item>
  </channel>
</rss>

