<?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: Splunk Visualization displaying the same color for both columns in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712081#M240291</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276664"&gt;@TallBear&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Green:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_2-1740047518693.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34633i8F8BB48FBF713F40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_2-1740047518693.png" alt="kiran_panchavat_2-1740047518693.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can use hexadecimal color to change it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_3-1740047550904.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34634iE132DE13F0397EDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_3-1740047550904.png" alt="kiran_panchavat_3-1740047550904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 10:32:41 GMT</pubDate>
    <dc:creator>kiran_panchavat</dc:creator>
    <dc:date>2025-02-20T10:32:41Z</dc:date>
    <item>
      <title>Splunk Visualization displaying the same color for both columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712071#M240287</link>
      <description>&lt;P&gt;I am using the following query to display a result on a dashboard (query with sample data which resembles the data I use):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval zip="Test-10264,Production;Test-10262,Production;Test-102123,Production;MGM-1,Development;MGM-2,Development;MGM-3,Development;MGM-4,Development"
| makemv delim=";" zip
| mvexpand zip
| table zip _time
```End of sample data```
| rex field=zip "(?&amp;lt;ticket&amp;gt;.+?),(?&amp;lt;Status&amp;gt;.+$)"
| stats values(ticket) as tickets by Status
| stats count(tickets) as amount by Status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And this is being returned by visualization:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TallBear_0-1740044787752.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34630i2A7D79596BD1F5D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TallBear_0-1740044787752.png" alt="TallBear_0-1740044787752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I'm facing is both columns have the same color, but I want to each column to have its own unique color (this doesn't have to be predefined, it would be okay if Splunk itself chooses random colors).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: typo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 11:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712071#M240287</guid>
      <dc:creator>TallBear</dc:creator>
      <dc:date>2025-02-20T11:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Visualization displaying the same color for both columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712075#M240289</link>
      <description>&lt;P&gt;&amp;nbsp;Charts are coloured by series i.e. each series has a different colour (until you have lots of series and the colours recycle). In your case, you only have one series, Status, which has two values. To get different colours, you need different series.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval zip=split("Test-10264,Production;Test-10262,Production;Test-102123,Production;MGM-1,Development;MGM-2,Development;MGM-3,Development;MGM-4,Development",";")
| mvexpand zip
| table zip _time
```End of sample data```
| rex field=zip "(?&amp;lt;ticket&amp;gt;.+?),(?&amp;lt;Status&amp;gt;.+$)"
| chart count(ticket) as tickets by _time Status&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712075#M240289</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-20T10:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Visualization displaying the same color for both columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712078#M240290</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276664"&gt;@TallBear&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to change the color, please use this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1740047317649.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34631iB839A8233995B732/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1740047317649.png" alt="kiran_panchavat_0-1740047317649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the source code you have to add an&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;inside the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;chart&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;tag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_1-1740047359139.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34632i1091A0182A7DA20D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_1-1740047359139.png" alt="kiran_panchavat_1-1740047359139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Column Chart&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;panel we have written the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"status":#66FF00,"date_hour":#FF0000,"amount":#00009C}&amp;lt;/option&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here&amp;nbsp;status&amp;nbsp;, and amount&amp;nbsp;are the fields names of the column chart. Also you have to specify the&amp;nbsp;hexadecimal&amp;nbsp;codes of the colors for every fields which you want color &amp;nbsp;. You can put any&amp;nbsp;hexadecimal&amp;nbsp;color codes as per your wish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712078#M240290</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-02-20T10:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Visualization displaying the same color for both columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712081#M240291</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276664"&gt;@TallBear&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Green:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_2-1740047518693.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34633i8F8BB48FBF713F40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_2-1740047518693.png" alt="kiran_panchavat_2-1740047518693.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can use hexadecimal color to change it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_3-1740047550904.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34634iE132DE13F0397EDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_3-1740047550904.png" alt="kiran_panchavat_3-1740047550904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:32:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712081#M240291</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-02-20T10:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Visualization displaying the same color for both columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712082#M240292</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276664"&gt;@TallBear&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Bar Chart&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;panel we have written the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"status":#00FF00,"date_hour":#FFF700,"count":#00009C}&amp;lt;/option&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;status , date_hour&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;are the fields names of the bar chart. Also you have to specify the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hexadecimal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;codes of the colors for every fields which you want color &amp;nbsp;. You can put any&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hexadecimal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;color codes as per your wish.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After adding the options in the source code click on&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Save&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to save the changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: change your field name in the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712082#M240292</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-02-20T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Visualization displaying the same color for both columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712110#M240296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276664"&gt;@TallBear&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest way to achieve this is to create multiple series like this, and then change to stacked bar chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval zip="Test-10264,Production;Test-10262,Production;Test-102123,Production;MGM-1,Development;MGM-2,Development;MGM-3,Development;MGM-4,Development"
| makemv delim=";" zip
| mvexpand zip
| table zip _time
```End of sample data```
| rex field=zip "(?&amp;lt;ticket&amp;gt;.+?),(?&amp;lt;Status&amp;gt;.+$)"
| stats values(ticket) as tickets by Status
| stats count(tickets) as amount by Status
``` Add the SPL below ```
| eval {Status}=amount
| fields - status amount&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1740056594496.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34638i2D4E028C141A6190/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1740056594496.png" alt="livehybrid_0-1740056594496.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Visualization-displaying-the-same-color-for-both-columns/m-p/712110#M240296</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-02-20T13:05:03Z</dc:date>
    </item>
  </channel>
</rss>

