<?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: How to change bar chart colors for single count in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692038#M56701</link>
    <description>&lt;P&gt;Yeah, I am a bit confuse as well. Seems like the last part of the query "| sort - count | head 10" does not really do anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've modified my search to be like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type="request" "request.path"="prod/" | stats count by account_namespace | eval namespace="" | xyseries namespace account_namespace count | sort - count | head 10&lt;/LI-CODE&gt;&lt;P&gt;by using the above, it gives me a result where the account_namespace shows as a column with all the count as the value. In the column it is showing all of it and not only the top 10 that has highest count.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jun 2024 23:08:00 GMT</pubDate>
    <dc:creator>soulmaker</dc:creator>
    <dc:date>2024-06-30T23:08:00Z</dc:date>
    <item>
      <title>How to change bar chart colors for single count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/691624#M56665</link>
      <description>&lt;P&gt;Hi, I wanted to have a bar graph that has different colour for better represention of my dashboard. I do have a search like below"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type="request" "request.path"="prod" | stats count by account_namespace | sort - count | head 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding the "&amp;lt;option name="charting.seriesColors"&amp;gt;[0x1e93c6, 0xf2b827, 0xd6563c, 0x6a5c9e, 0x31a35f, 0xed8440, 0x3863a0, 0xa2cc3e, 0xcc5068, 0x73427f]&amp;lt;/option&amp;gt;" but I still get a single colour in my bar graph. I believe since i only one series for my query hence the single colour output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way for me to have my bar graph contains multiple colour?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 02:53:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/691624#M56665</guid>
      <dc:creator>soulmaker</dc:creator>
      <dc:date>2024-06-26T02:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart colors for single count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/691629#M56666</link>
      <description>&lt;P&gt;You can do either of these first to turn it to a multiseries chart&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval namespace=""
| xyseries namespace account_namespace count

OR

| transpose 0 header_field=account_namespace column_name=account_namespace
| eval account_namespace=""&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Jun 2024 03:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/691629#M56666</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-26T03:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart colors for single count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692035#M56698</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;for your reply and sharing the below. I have now managed to make it multiseries chart by applying you've shared below. However, it is showing the result of all of the account_namespace, is there a way for me to filter the highest 10 count and only shows that?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 22:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692035#M56698</guid>
      <dc:creator>soulmaker</dc:creator>
      <dc:date>2024-06-30T22:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart colors for single count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692036#M56699</link>
      <description>&lt;P&gt;Your original search will already limit the top 10, as you are doing sort+head, so not sure I understand how you are getting all results?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 22:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692036#M56699</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-30T22:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart colors for single count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692038#M56701</link>
      <description>&lt;P&gt;Yeah, I am a bit confuse as well. Seems like the last part of the query "| sort - count | head 10" does not really do anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've modified my search to be like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type="request" "request.path"="prod/" | stats count by account_namespace | eval namespace="" | xyseries namespace account_namespace count | sort - count | head 10&lt;/LI-CODE&gt;&lt;P&gt;by using the above, it gives me a result where the account_namespace shows as a column with all the count as the value. In the column it is showing all of it and not only the top 10 that has highest count.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 23:08:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692038#M56701</guid>
      <dc:creator>soulmaker</dc:creator>
      <dc:date>2024-06-30T23:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart colors for single count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692040#M56702</link>
      <description>&lt;P&gt;Put my additional SPL - &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;AFTER&lt;/STRONG&gt;&lt;/FONT&gt; your original search - you've added it in the middle&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 23:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692040#M56702</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-30T23:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart colors for single count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692042#M56704</link>
      <description>&lt;P&gt;This works! thanks man for your help on this one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 23:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-bar-chart-colors-for-single-count/m-p/692042#M56704</guid>
      <dc:creator>soulmaker</dc:creator>
      <dc:date>2024-06-30T23:29:41Z</dc:date>
    </item>
  </channel>
</rss>

