<?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: Cannot get a stacked bar chart to work in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23251#M845</link>
    <description>&lt;P&gt;Dude, thats awesome, I would like to end up sorting that chart by Name, then count in descending order from left to right, but I can probably figure that out easy enough.  I was running into an issue with anything over 10 "values" being reported as "Other" the xyseries, fixed this.&lt;/P&gt;

&lt;P&gt;Thank you much!&lt;/P&gt;

&lt;P&gt;Shawn&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2013 02:50:37 GMT</pubDate>
    <dc:creator>Cuyose</dc:creator>
    <dc:date>2013-05-03T02:50:37Z</dc:date>
    <item>
      <title>Cannot get a stacked bar chart to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23248#M842</link>
      <description>&lt;P&gt;Im working on a search using a db query.  The  search and charting im trying to do is as follows:&lt;BR /&gt;
| dbquery Utility  "select count(value) as count, name as name, value as value from eavrecord where name not IN ('completed_at','all') group by value order by name, count(name)  desc" | chart max(count) as count by value | sort by name, value&lt;/P&gt;

&lt;P&gt;Now the sql returns 3 columns, a count of each "value" which is associated with one of 21 "names"  For example the name "a" can have 5 different values "dog,cat,mouse, etc" and there is a row for each record of this.   &lt;/P&gt;

&lt;P&gt;What I would like to build is a stacked column chart so each bar is a name "A,B, etc"  and the seperating colors in the chart are the counts of the values with the legend reflecting the value attributes.&lt;/P&gt;

&lt;P&gt;I can't seem to get splunk to do this.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 01:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23248#M842</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2013-05-03T01:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a stacked bar chart to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23249#M843</link>
      <description>&lt;P&gt;OK, my region just started a long weekend and nothing to do this morning. Good change to play with DB Connect and learn from Answers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I assume your SQL result is something similar to the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysql&amp;gt; select count(value) as count, name, value from animal group by value,name order by name;
+-------+---------+---------+
| count | name    | value   |
+-------+---------+---------+
|     9 | name-1  | value-5 |
|     9 | name-1  | value-1 |
|     8 | name-1  | value-4 |
|    10 | name-1  | value-2 |
|    16 | name-1  | value-3 |
|    19 | name-10 | value-1 |
|     5 | name-10 | value-3 |
|    10 | name-10 | value-4 |
|    14 | name-10 | value-2 |
|     8 | name-10 | value-5 |
|    11 | name-11 | value-4 |
|    10 | name-11 | value-3 |
|    12 | name-11 | value-2 |
|     9 | name-11 | value-5 |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then, I just created a table with xyseries.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88_2013-05-03_11.32.42.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;then, just click the result chart button just next to export link, change formatting option-&amp;gt; stack mode to stacked.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88_2013-05-03_11.27.20.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;is this similar to what you are looking for?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 02:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23249#M843</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2013-05-03T02:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a stacked bar chart to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23250#M844</link>
      <description>&lt;P&gt;Dude, thats awesome, I would like to end up sorting that chart by Name, then count in descending order from left to right, but I can probably figure that out easy enough.  I was running into an issue with anything over 10 "values" being reported as "Other" the xyseries, fixed this.&lt;/P&gt;

&lt;P&gt;Thank you much!&lt;/P&gt;

&lt;P&gt;Shawn&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 02:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23250#M844</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2013-05-03T02:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a stacked bar chart to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23251#M845</link>
      <description>&lt;P&gt;Dude, thats awesome, I would like to end up sorting that chart by Name, then count in descending order from left to right, but I can probably figure that out easy enough.  I was running into an issue with anything over 10 "values" being reported as "Other" the xyseries, fixed this.&lt;/P&gt;

&lt;P&gt;Thank you much!&lt;/P&gt;

&lt;P&gt;Shawn&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 02:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23251#M845</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2013-05-03T02:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a stacked bar chart to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23252#M846</link>
      <description>&lt;P&gt;also I have a lot of data so im running into a truncation issue with the amount of returned data&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 02:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23252#M846</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2013-05-03T02:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a stacked bar chart to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23253#M847</link>
      <description>&lt;P&gt;Ive tried to edit the jscart.conf for the maxresults and its still not working.  So while the Stacked bar charts are working, there is a lot of data not being rendered.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 03:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23253#M847</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2013-05-03T03:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a stacked bar chart to work</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23254#M848</link>
      <description>&lt;P&gt;Seems that you are still stuck with something else.&lt;BR /&gt;
If you are OK with this answer for now, please accept the answer by clicking the check mark. &lt;BR /&gt;
And for other questions you may have, post them as a separate post.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 05:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-get-a-stacked-bar-chart-to-work/m-p/23254#M848</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2013-05-03T05:34:26Z</dc:date>
    </item>
  </channel>
</rss>

