<?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 Display barchart of a dashboard with each bar in a different color based on the value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466265#M45618</link>
    <description>&lt;P&gt;I have a dashboard panel with a simple query, which gives top 20 values of the event. For example, I am searching for number of customers of top 20 countries of my product. As expected each country comes up with a unique value. Hence I need each cauntry should be given a unique color in the bar chart of a dashboard while each bar represents a unique country. Please suggest. Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2019 15:41:53 GMT</pubDate>
    <dc:creator>saichandjawari</dc:creator>
    <dc:date>2019-12-16T15:41:53Z</dc:date>
    <item>
      <title>Display barchart of a dashboard with each bar in a different color based on the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466265#M45618</link>
      <description>&lt;P&gt;I have a dashboard panel with a simple query, which gives top 20 values of the event. For example, I am searching for number of customers of top 20 countries of my product. As expected each country comes up with a unique value. Hence I need each cauntry should be given a unique color in the bar chart of a dashboard while each bar represents a unique country. Please suggest. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 15:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466265#M45618</guid>
      <dc:creator>saichandjawari</dc:creator>
      <dc:date>2019-12-16T15:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Display barchart of a dashboard with each bar in a different color based on the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466266#M45619</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;charting.fieldColors&lt;/CODE&gt; setting:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 15:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466266#M45619</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-16T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display barchart of a dashboard with each bar in a different color based on the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466267#M45620</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Check this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;chart color&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal |top limit=5 sourcetype
          | transpose 0 header_field=sourcetype|search column=count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;bar&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.seriesColors"&amp;gt;[0x1e93c6, 0xf2b827, 0xd6563c, 0x6a5c9e, 0x31a35f, 0xed8440]&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&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, 16 Dec 2019 16:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466267#M45620</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-12-16T16:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Display barchart of a dashboard with each bar in a different color based on the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466268#M45621</link>
      <description>&lt;P&gt;vnravikumar, thanks! That worked for me. Can you please let me know the logic behind naming convention of colors? &lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 10:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466268#M45621</guid>
      <dc:creator>saichandjawari</dc:creator>
      <dc:date>2019-12-17T10:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Display barchart of a dashboard with each bar in a different color based on the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466269#M45622</link>
      <description>&lt;P&gt;This answer allows you to pick the color pallet but Splunk assigns the colors as it chooses.  If you need to map certain colors to certain values, then this is not the right way to do it; see my answer for the correct method.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 16:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-barchart-of-a-dashboard-with-each-bar-in-a-different/m-p/466269#M45622</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-17T16:05:18Z</dc:date>
    </item>
  </channel>
</rss>

