<?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 to change dashboard panel from line graph to pie chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311673#M19924</link>
    <description>&lt;P&gt;Can you try to swap your by statement?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | chart  count(Rating) by JoinedFrom YearWeek 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You would also need trellis enabled to split it by YearWeek. Splunk version 6.6&lt;/P&gt;

&lt;P&gt;Otherwise pie will only work with one by statement, so I would remove the YearWeek, or show multiple panels for each YearWeek&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 22:19:56 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-07-12T22:19:56Z</dc:date>
    <item>
      <title>How to change dashboard panel from line graph to pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311672#M19923</link>
      <description>&lt;P&gt;I have a line graph tracking different call sources over the past 6 months:&lt;BR /&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/3205i5F55C4F5874EE072/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here is the search code I have written:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=webex_sentiment JoinedFrom != "No" AND JoinedFrom != "Yes" AND (Rating=1 OR Rating=2)  | eval surveyDate=strptime(Started,"%m/%d/%Y %H:%M") | eval YearWeek=strftime(surveyDate,"%Y-%U") | search YearWeek&amp;gt;2016-11  | chart  count(Rating) by YearWeek JoinedFrom
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Rather than showing each source as an individual line, I want to create a pie chart that displays each call source as a percentage over the past six months.&lt;BR /&gt;
When I switch my visualization to Pie chart, this is what appears:&lt;/P&gt;

&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/3206iE784C6E7C67B7523/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The data is incorrectly grouped by date, rather than type.&lt;BR /&gt;
I believe I need to change my search query. Please advise.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 20:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311672#M19923</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-12T20:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change dashboard panel from line graph to pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311673#M19924</link>
      <description>&lt;P&gt;Can you try to swap your by statement?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | chart  count(Rating) by JoinedFrom YearWeek 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You would also need trellis enabled to split it by YearWeek. Splunk version 6.6&lt;/P&gt;

&lt;P&gt;Otherwise pie will only work with one by statement, so I would remove the YearWeek, or show multiple panels for each YearWeek&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 22:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311673#M19924</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-12T22:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change dashboard panel from line graph to pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311674#M19925</link>
      <description>&lt;P&gt;I like the trellis idea because it keeps both vectors ( &lt;CODE&gt;JoinedFrom&lt;/CODE&gt; and &lt;CODE&gt;YearWeek&lt;/CODE&gt; ) but it looks like you are just trying to ditch &lt;CODE&gt;YearWeek&lt;/CODE&gt; so just swap the order like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart count(Rating) by YearWeek JoinedFrom
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or better yet, drop it entirely like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart count(Rating) by JoinedFrom
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jul 2017 00:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311674#M19925</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-13T00:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to change dashboard panel from line graph to pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311675#M19926</link>
      <description>&lt;P&gt;@woodcock&lt;/P&gt;

&lt;P&gt;Thanks so much!&lt;/P&gt;

&lt;P&gt;For anyone interested, here is the graph I was looking for: &lt;A href="http://imgur.com/a/jTe7Q"&gt;http://imgur.com/a/jTe7Q&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311675#M19926</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-13T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to change dashboard panel from line graph to pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311676#M19927</link>
      <description>&lt;P&gt;@cmerriman&lt;/P&gt;

&lt;P&gt;How do I split by YearWeek with trellis?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311676#M19927</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-13T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change dashboard panel from line graph to pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311677#M19928</link>
      <description>&lt;P&gt;you'll need to be on splunk version 6.6 to use the trellis option. &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Viz/VisualizationTrellis"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Viz/VisualizationTrellis&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When you're on the Visualization tab, you'll see a &lt;STRONG&gt;Trellis&lt;/STRONG&gt; button next to &lt;STRONG&gt;Format&lt;/STRONG&gt;. When you click on it, you'll see a checkbox for &lt;STRONG&gt;Use trellis layout&lt;/STRONG&gt;. There is a &lt;STRONG&gt;Split by&lt;/STRONG&gt; option and you can choose to split by various available fields or the aggregation of your fields. &lt;/P&gt;

&lt;P&gt;There is a syntaxing note that I'll forewarn you about, and it's that I recommend you end the syntax with a command like stats, chart, timechart, etc. and not an eval command, because the split by option sometimes will only allow you to split by the aggregation in those cases.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-dashboard-panel-from-line-graph-to-pie-chart/m-p/311677#M19928</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-13T13:38:59Z</dc:date>
    </item>
  </channel>
</rss>

