<?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: Set custom color for choropleth map bins in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-custom-color-for-choropleth-map-bins/m-p/513867#M34300</link>
    <description>&lt;P&gt;I realized what was wrong. Instead of using mapping.seriesColors, I should use mapping.fieldColors.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 09:40:22 GMT</pubDate>
    <dc:creator>wu_weidong</dc:creator>
    <dc:date>2020-08-13T09:40:22Z</dc:date>
    <item>
      <title>Set custom color for choropleth map bins</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-custom-color-for-choropleth-map-bins/m-p/513545#M34273</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to build a (categorical) choropleth map where the 3 ranges are showing specific colors. Part of my code is&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;query&amp;gt;...
| eval count=case(count&amp;lt;=-100,"-100",(count&amp;gt;=-100 AND count&amp;lt;=50),"-100 to -50",count&amp;gt;50,"&amp;gt;50")
| sort + count
| geom geo_countries featureIdField=country&amp;lt;/query&amp;gt;

&amp;lt;option name="mapping.type"&amp;gt;choropleth&amp;lt;/option&amp;gt;
&amp;lt;option name="mapping.choroplethLayer.colorBins"&amp;gt;3&amp;lt;/option&amp;gt;
&amp;lt;option name="mapping.choroplethLayer.colorMode"&amp;gt;categorical&amp;lt;/option&amp;gt;
&amp;lt;option name="mapping.seriesColors"&amp;gt;{"-100":#ff9900,"-100 to 50":#ffcc00,"&amp;gt;50":#fff0b3}&amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;However, I'm just seeing the countries colored black, regardless of which bin they fall into. Without specifying "mapping.seriesColors", the countries are colored automatically by Splunk.&lt;/P&gt;&lt;P&gt;Am I using the seriesColors option wrong?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 11:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-custom-color-for-choropleth-map-bins/m-p/513545#M34273</guid>
      <dc:creator>wu_weidong</dc:creator>
      <dc:date>2020-08-11T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set custom color for choropleth map bins</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-custom-color-for-choropleth-map-bins/m-p/513867#M34300</link>
      <description>&lt;P&gt;I realized what was wrong. Instead of using mapping.seriesColors, I should use mapping.fieldColors.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 09:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-custom-color-for-choropleth-map-bins/m-p/513867#M34300</guid>
      <dc:creator>wu_weidong</dc:creator>
      <dc:date>2020-08-13T09:40:22Z</dc:date>
    </item>
  </channel>
</rss>

