<?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: Creating a stacked line chart not by time in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313250#M20069</link>
    <description>&lt;P&gt;Show us some raw events and a mockup of the chart that you desire (I do not get it).&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 03:14:01 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-04-06T03:14:01Z</dc:date>
    <item>
      <title>Creating a stacked line chart not by time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313247#M20066</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Our machines run through various processes (each one is given a unique run_id), each process can be broken down into different steps. What I want to do is to create a stacked line chart (or area chart) where the duration of each step can be shown for each run_id and a sum of all the steps given. I've created two different queries to get the data to what I want but I'm not sure how to convert either into a readable line chart.&lt;/P&gt;

&lt;P&gt;Sample table from query 1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;run_id             duration            sum
x                    4                20
                     5                         
                     6
                     5
y                   10                50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Duration is a multivalue field in this case and the sum is just a single sum of all the steps.&lt;/P&gt;

&lt;P&gt;Sample table from query 2&lt;/P&gt;

&lt;P&gt;run_id     step    duration   cumulative sum&lt;BR /&gt;
x               1           4                4&lt;BR /&gt;
x               2           5                9&lt;BR /&gt;
x               3           6                15&lt;BR /&gt;
x               4           5                20&lt;BR /&gt;
y               1           10              10&lt;/P&gt;

&lt;P&gt;This table shows the step name and the sum is a cumulative sum (using streamstats).&lt;/P&gt;

&lt;P&gt;I need to use the run_id (run_ids are essentially a marker of when the process occurred) on the y-axis.  I know that a stacked column chart would be a much better way to visualize the duration/sum of the steps but we go through nearly a hundred runs a day and it's not feasible to produce that many columns. Does anyone have any advice on how to turn either of these tables into a readable line chart?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313247#M20066</guid>
      <dc:creator>byu168</dc:creator>
      <dc:date>2020-09-29T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a stacked line chart not by time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313248#M20067</link>
      <description>&lt;P&gt;Would you give this a try. Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Query 2 giving fields run_id step duration cumulative sum (don't care about cumulative sum)
| chart sum(duration) over run_id by step
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Display it in stacked column chart. So each column would represent a run_id and each column will be splitted into duration for step. Total height of column will be total duration (not calculated but can see visually).&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 22:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313248#M20067</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-05T22:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a stacked line chart not by time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313249#M20068</link>
      <description>&lt;P&gt;I had intended to avoid using a stacked column chart because I didn't think it would scale well with the amount of runs we had but it actually looks fine. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 22:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313249#M20068</guid>
      <dc:creator>byu168</dc:creator>
      <dc:date>2017-04-05T22:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a stacked line chart not by time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313250#M20069</link>
      <description>&lt;P&gt;Show us some raw events and a mockup of the chart that you desire (I do not get it).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 03:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-stacked-line-chart-not-by-time/m-p/313250#M20069</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-06T03:14:01Z</dc:date>
    </item>
  </channel>
</rss>

