<?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 How to make the chart legend static? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-chart-legend-static/m-p/343982#M101901</link>
    <description>&lt;P&gt;Hey Splunk experts,&lt;/P&gt;

&lt;P&gt;Please see if you can help me on this:&lt;BR /&gt;
I created a choroplet map chart and it is receiving the following 3 values: 1, 3 and 5 (1 means a sad face | 3 means an OK face | 5 means a happy face). &lt;/P&gt;

&lt;P&gt;Chart is working fine, but the legend keeps changing it's interval every new data received. Is it possible to keep the legend static?&lt;BR /&gt;
As:&lt;/P&gt;

&lt;P&gt;1 - 2.5: (sad face)&lt;BR /&gt;
2.6 - 3.5: (OK face)&lt;BR /&gt;
3.6 - 5: (happy face)&lt;/P&gt;

&lt;P&gt;Is it possible?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 14:12:26 GMT</pubDate>
    <dc:creator>gcescatto</dc:creator>
    <dc:date>2018-04-20T14:12:26Z</dc:date>
    <item>
      <title>How to make the chart legend static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-chart-legend-static/m-p/343982#M101901</link>
      <description>&lt;P&gt;Hey Splunk experts,&lt;/P&gt;

&lt;P&gt;Please see if you can help me on this:&lt;BR /&gt;
I created a choroplet map chart and it is receiving the following 3 values: 1, 3 and 5 (1 means a sad face | 3 means an OK face | 5 means a happy face). &lt;/P&gt;

&lt;P&gt;Chart is working fine, but the legend keeps changing it's interval every new data received. Is it possible to keep the legend static?&lt;BR /&gt;
As:&lt;/P&gt;

&lt;P&gt;1 - 2.5: (sad face)&lt;BR /&gt;
2.6 - 3.5: (OK face)&lt;BR /&gt;
3.6 - 5: (happy face)&lt;/P&gt;

&lt;P&gt;Is it possible?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 14:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-chart-legend-static/m-p/343982#M101901</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2018-04-20T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the chart legend static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-chart-legend-static/m-p/343983#M101902</link>
      <description>&lt;P&gt;How are you implementing this mapping?  In SPL or XML?  It would help to show us the full simpleXML for a dashboard that has just this 1 panel.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 20:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-chart-legend-static/m-p/343983#M101902</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-22T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the chart legend static?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-chart-legend-static/m-p/343984#M101903</link>
      <description>&lt;P&gt;Hey @woodcock!&lt;/P&gt;

&lt;P&gt;It's in SPL:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=msahc sourcetype=msahc_raw  | rex "(?&amp;lt;json_field&amp;gt;{[^}]+})" | mvexpand json_field | spath input=json_field | search "ERnE Dashboard" OR "HowUFeeling Survey" OR "TBO Dashboard" group="*" country="*" | eval ServerName=upper(ServerName) | rename mood as "Mood", comment as "Comment", country as "Country" | stats avg(Mood) by Country | geom geo_countries featureIdField="Country" | rename avg(Mood) as "Mood Average"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The XML for the dashboard is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Team Happiness&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="time" searchWhenChanged="true" token="myTime"&amp;gt;
      &amp;lt;label&amp;gt;SELECT THE TIME RANGE:&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" searchWhenChanged="true" token="myLocation"&amp;gt;
      &amp;lt;label&amp;gt;SELECT YOUR LOCATION:&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;country&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;country&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=msahc sourcetype=msahc_raw | rex "(?&amp;amp;lt;json_field&amp;amp;gt;{[^}]+})" | mvexpand json_field | spath input=json_field | dedup country | fields country | sort country&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" searchWhenChanged="true" token="myTeam"&amp;gt;
      &amp;lt;label&amp;gt;SELECT YOUR TEAM:&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;group&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;group&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=msahc sourcetype=msahc_raw | rex "(?&amp;amp;lt;json_field&amp;amp;gt;{[^}]+})" | mvexpand json_field | spath input=json_field | search country=$myLocation|s$ | dedup group | fields group | sort group&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;map&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=msahc sourcetype=msahc_raw  | rex "(?&amp;amp;lt;json_field&amp;amp;gt;{[^}]+})" | mvexpand json_field | spath input=json_field | search "ERnE Dashboard" OR "HowUFeeling Survey" OR "TBO Dashboard" group="*" country="*" | eval ServerName=upper(ServerName) | rename mood as "Mood", comment as "Comment", country as "Country" | stats avg(Mood) by Country | geom geo_countries featureIdField="Country" | rename avg(Mood) as "Mood Average"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$myTime.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$myTime.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.type"&amp;gt;choropleth&amp;lt;/option&amp;gt;
      &amp;lt;/map&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-chart-legend-static/m-p/343984#M101903</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2018-04-23T13:24:22Z</dc:date>
    </item>
  </channel>
</rss>

