<?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 Best Practices for Data Visualization from CSV? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Best-Practices-for-Data-Visualization-from-CSV/m-p/149766#M9088</link>
    <description>&lt;P&gt;So let's say I have a CSV full of data from different fields (in the range A-F):&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;A  B  C  D  E  F&lt;/STRONG&gt;&lt;BR /&gt;
X  0  0  0  2  1&lt;BR /&gt;
Y  0  0  0  1  1&lt;BR /&gt;
Y  0  0  0  4  1&lt;BR /&gt;
X  0  0  0  5  1&lt;BR /&gt;
Z  0  0  0  3  1&lt;/P&gt;

&lt;P&gt;I want to make a dashboard that visualizes several different fields against each other in different panels. So far I've been constructing the panels from specific searches (ie: | stats sum("D") by "A") but this runs into the hurdle that for column charts it can only display one color (one data series).&lt;/P&gt;

&lt;P&gt;I've been looking into putting the information into a pivot chart since it seems that the editor gives me more flexibility in choosing colors. However I'm not sure the best way to go about this. Any help is appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2015 13:32:34 GMT</pubDate>
    <dc:creator>lsanmiguel</dc:creator>
    <dc:date>2015-06-12T13:32:34Z</dc:date>
    <item>
      <title>Best Practices for Data Visualization from CSV?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Best-Practices-for-Data-Visualization-from-CSV/m-p/149766#M9088</link>
      <description>&lt;P&gt;So let's say I have a CSV full of data from different fields (in the range A-F):&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;A  B  C  D  E  F&lt;/STRONG&gt;&lt;BR /&gt;
X  0  0  0  2  1&lt;BR /&gt;
Y  0  0  0  1  1&lt;BR /&gt;
Y  0  0  0  4  1&lt;BR /&gt;
X  0  0  0  5  1&lt;BR /&gt;
Z  0  0  0  3  1&lt;/P&gt;

&lt;P&gt;I want to make a dashboard that visualizes several different fields against each other in different panels. So far I've been constructing the panels from specific searches (ie: | stats sum("D") by "A") but this runs into the hurdle that for column charts it can only display one color (one data series).&lt;/P&gt;

&lt;P&gt;I've been looking into putting the information into a pivot chart since it seems that the editor gives me more flexibility in choosing colors. However I'm not sure the best way to go about this. Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 13:32:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Best-Practices-for-Data-Visualization-from-CSV/m-p/149766#M9088</guid>
      <dc:creator>lsanmiguel</dc:creator>
      <dc:date>2015-06-12T13:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Data Visualization from CSV?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Best-Practices-for-Data-Visualization-from-CSV/m-p/149767#M9089</link>
      <description>&lt;P&gt;You said "for column charts it can only display one color (one data series)." I may be mis-understanding your meaning, but you can display more by using the &lt;CODE&gt;chart&lt;/CODE&gt; command instead of stats:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere 
| chart sum(D) by A F
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will make a chart similar to the original, but with each A column split into sub-series by the values of F.  However, you can only put 2 fields in the &lt;CODE&gt;by&lt;/CODE&gt; clause. And this doesn't work if you wanted to compare 2 independent series...&lt;/P&gt;

&lt;P&gt;You can also put multiple series in a visualization in this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere | stats sum(D) as totalD by B 
| append [ search yoursearchhere | stats sum(D) as totalD by C ]
| append  [ search yoursearchhere | stats sum(D) as totalD by F ]
| stats first(B) as B first(C) as C first(F) as F by totalD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then choose your visualization. However, this requires that the values of B C and F are quite similar, as they will appear on the X-axis. All of them should be in the same range of values, and all should be either numeric or discrete values.&lt;/P&gt;

&lt;P&gt;You may also find the &lt;CODE&gt;xyseries&lt;/CODE&gt; command helpful for building results that can be visualized in Splunk.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 18:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Best-Practices-for-Data-Visualization-from-CSV/m-p/149767#M9089</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-06-14T18:56:18Z</dc:date>
    </item>
  </channel>
</rss>

