<?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  do you  create  2 variables Y axis column chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336367#M99832</link>
    <description>&lt;P&gt;You just need to make FP your series value, set the colors for each series,  and do a stacked bar chart.&lt;/P&gt;

&lt;P&gt;I have no idea in the world how you figure your number of bars.  An AP value of 0 gets 4 bars, a value of 4 gets 0 bars?  Not a clue.  Just feed the chart the number of bars you want. &lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 14:39:09 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-07-31T14:39:09Z</dc:date>
    <item>
      <title>How  do you  create  2 variables Y axis column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336366#M99831</link>
      <description>&lt;P&gt;Hello, I want create a column chart with 2 y-axis variables (AP and FP). I want AP to be the number of bars on the X axis and FP to be the color of bars. For example IF AP is 0 and FP is 0 we have 4 green bars, when AP is 4 and FP  is 0 we have 1 green bar. If FP changes, the color of the bars changes. If AP changes the number of bars change .&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3282iE55FBE420F15977E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt; Find attached desired outcome. thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:43:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336366#M99831</guid>
      <dc:creator>nyasharashad59</dc:creator>
      <dc:date>2017-07-28T10:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How  do you  create  2 variables Y axis column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336367#M99832</link>
      <description>&lt;P&gt;You just need to make FP your series value, set the colors for each series,  and do a stacked bar chart.&lt;/P&gt;

&lt;P&gt;I have no idea in the world how you figure your number of bars.  An AP value of 0 gets 4 bars, a value of 4 gets 0 bars?  Not a clue.  Just feed the chart the number of bars you want. &lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 14:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336367#M99832</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-07-31T14:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: How  do you  create  2 variables Y axis column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336368#M99833</link>
      <description>&lt;P&gt;Hello DalJeanis&lt;/P&gt;

&lt;P&gt;I have two variables  subscriber_ap and subscriber_fup.  AP being  a scale of 0- 4. FUP being a colour. So lets say you got subscriber_ap on 100 (it should mark on 2 on the y-axis) and subscriber_fup is on 200 it should put the color Red.  I have used the commands attached but still no joy!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336368#M99833</guid>
      <dc:creator>nyasharashad59</dc:creator>
      <dc:date>2020-09-29T15:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: How  do you  create  2 variables Y axis column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336369#M99834</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3281i7F07E2B3359F6FBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 15:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336369#M99834</guid>
      <dc:creator>nyasharashad59</dc:creator>
      <dc:date>2017-07-31T15:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How  do you  create  2 variables Y axis column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336370#M99835</link>
      <description>&lt;P&gt;Okay, you'll have to figure out whether you are looking for sum, max, avg, first, last or whatever for the AP and FUP values in any give one hour period, and adjust the &lt;CODE&gt;stats&lt;/CODE&gt; command accordingly...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sandvine sourcetype=sql subscriber_name="$subscriberid$"
| bin _time span=1h
| stats sum(subscriber_ap) as SAP sum(subscriber_fup) as FUP 
| eval chartbars=round(SAP/50)
| eval chartcolor=case(FUP&amp;gt;=150,"orange", FUP&amp;gt;=100,"yellow", true(),"green")
| timechart span=1h max(chartbars) by chartcolor
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then set the chart format to stacked, so that you wont get empty slots for the other two.  &lt;/P&gt;

&lt;P&gt;You may need some fiddling after that as per this page... &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Viz/Chartcustomization"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Viz/Chartcustomization&lt;/A&gt; ... to make green come out green and so on, but the basics are there for you.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 15:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-2-variables-Y-axis-column-chart/m-p/336370#M99835</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-07-31T15:58:17Z</dc:date>
    </item>
  </channel>
</rss>

