<?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: Reverse Stacked Order of Column Chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651262#M53398</link>
    <description>&lt;P&gt;The visualisation with put the bars in the order of the fields, first at the top.&lt;/P&gt;&lt;P&gt;Chart with order the fields in a sorted order, so in your case 1 will be first (and therefore top of the stack).&lt;/P&gt;&lt;P&gt;To rectify this, you could try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transpose 0 header_field=_time column_name=level
| reverse
| transpose 0 header_field=level column_name=_time&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 20 Jul 2023 09:05:48 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-07-20T09:05:48Z</dc:date>
    <item>
      <title>Reverse Stacked Order of Column Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651260#M53397</link>
      <description>&lt;P&gt;Hi, I am new to Splunk. I have a stacked column chart after issuing this query:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index="A" OR index="B") 
    | chart count(Level) over _time span=1mon by Level usenull=f useother=f&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Level has four values: 1,2,3,4&lt;BR /&gt;&lt;BR /&gt;The chart is like this:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-07-20 164327.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26358i366393C22842DFEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-07-20 164327.png" alt="Screenshot 2023-07-20 164327.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see the stack order is now 2 &amp;gt; 3 &amp;gt; 4 (from top to bottom), what if I want to reverse it to display like 4 &amp;gt; 3 &amp;gt; 2 (from top to bottom). I have seen similar questions here using transpose or reverse, I tried follow but still have no luck. Could anyone help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 08:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651260#M53397</guid>
      <dc:creator>itnewbie</dc:creator>
      <dc:date>2023-07-20T08:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Stacked Order of Column Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651262#M53398</link>
      <description>&lt;P&gt;The visualisation with put the bars in the order of the fields, first at the top.&lt;/P&gt;&lt;P&gt;Chart with order the fields in a sorted order, so in your case 1 will be first (and therefore top of the stack).&lt;/P&gt;&lt;P&gt;To rectify this, you could try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transpose 0 header_field=_time column_name=level
| reverse
| transpose 0 header_field=level column_name=_time&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Jul 2023 09:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651262#M53398</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-20T09:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Stacked Order of Column Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651265#M53399</link>
      <description>&lt;P&gt;thanks for the reply. It worked. But what if I put it in chart overlay, like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index="A" OR index="B")  
| eval Satisfaction = if(Satisfaction="good with comment", "good", Satisfaction)
| eval Satisfaction = if(Satisfaction="bad with comment", "bad", Satisfaction)
| chart  count(Satisfaction) over _time span=1mon by Satisfaction usenull=f useother=f   
| appendcols  
[ | search (index="A" OR index="B") 
| chart count(Level) over _time span=1mon by Level usenull=f useother=f ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;where Level is from index A and Satisfaction is from index B. The chart like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-07-20 171307.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26359iD545B9B17BADF221/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-07-20 171307.png" alt="Screenshot 2023-07-20 171307.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to wrap your suggestions in the appendcols cause this is column chart part where I want to reverse the order&amp;nbsp; but it seemed won't work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 09:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651265#M53399</guid>
      <dc:creator>itnewbie</dc:creator>
      <dc:date>2023-07-20T09:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Stacked Order of Column Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651282#M53400</link>
      <description>&lt;P&gt;appendcols will sort the column names again.&lt;/P&gt;&lt;P&gt;Try it outside the appendcols&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index="A" OR index="B")  
| eval Satisfaction = if(Satisfaction="good with comment", "good", Satisfaction)
| eval Satisfaction = if(Satisfaction="bad with comment", "bad", Satisfaction)
| chart  count(Satisfaction) over _time span=1mon by Satisfaction usenull=f useother=f   
| appendcols  
[ | search (index="A" OR index="B") 
| chart count(Level) over _time span=1mon by Level usenull=f useother=f ]
| transpose 0 header_field=_time column_name=Level
| reverse
| transpose 0 header_field=Level column_name=_time&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Jul 2023 11:41:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651282#M53400</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-20T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Stacked Order of Column Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651394#M53412</link>
      <description>&lt;P&gt;Thank you. It worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 01:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reverse-Stacked-Order-of-Column-Chart/m-p/651394#M53412</guid>
      <dc:creator>itnewbie</dc:creator>
      <dc:date>2023-07-21T01:10:45Z</dc:date>
    </item>
  </channel>
</rss>

