<?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 convert this into a scatter plot? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33203#M1471</link>
    <description>&lt;P&gt;Time cannot be on the x axis, unfortunately. It appears the largest value for X is about 100, and an epoch starts at a number much larger than that.&lt;/P&gt;

&lt;P&gt;If you could convert time to some value on the range of 0..100, that could be charted.&lt;/P&gt;

&lt;P&gt;It's a serious drawback to the scatterplot; the line chart does 60% of what we want, but connecting the points is often the wrong thing to do. Plotting points against a time axis is what we really need.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2011 03:25:43 GMT</pubDate>
    <dc:creator>tedder</dc:creator>
    <dc:date>2011-01-27T03:25:43Z</dc:date>
    <item>
      <title>How to convert this into a scatter plot?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33202#M1470</link>
      <description>&lt;P&gt;Here is my code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" sourcetype="AS-CDR"
|where Called_Number="9999" OR Calling_Number="2155551060" OR Called_Number="2155551060" OR Calling_Number="12155551060" OR Called_Number="+12155551060" OR Calling_Number="+12155551060"
|eval Call_Duration = strptime(Release_Time, "%Y%m%d%H%M%S.%q") - strptime(Start_Time, "%Y%m%d%H%M%S.%q")
|eval TimeToAnswer= strptime(Answer_Time, "%Y%m%d%H%M%S.%q") - strptime(Start_Time, "%Y%m%d%H%M%S.%q")
|eval NormTermTest=if((Termination_Cause=="016" OR Termination_Cause=="017"),1,0)
|eval CallDurTest=if((Call_Duration&amp;gt;15),1,0)
|eval TimeToAnswerTest=if((TimeToAnswer&amp;lt;30),1,0)
|eval NotRedUnav=if(Redirecting_Reason=="unavailable",0,1)
|eval CallScore=((NormTermTest+NotRedUnav+CallDurTest+TimeToAnswerTest)/4)*100
|head 5
|table _time CallScore 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I need to do is convert the two resulting columns into a scatter plot, showing the call score discretely over time. Each individual phone call in the system gets a score, but since we don't know when a particular user will call it doesn't really make sense to use a line chart or a bin (there is no set interval). The management is fiercely against using things like bins because they mask data in the dashboard. Any help would really be appreciated.&lt;/P&gt;

&lt;P&gt;Thus far pretty much any other type of chart works except the scatter. Basically i'm looking to see time be the x axis, and the call score at the given time be along the y axis.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2011 01:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33202#M1470</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-01-27T01:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this into a scatter plot?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33203#M1471</link>
      <description>&lt;P&gt;Time cannot be on the x axis, unfortunately. It appears the largest value for X is about 100, and an epoch starts at a number much larger than that.&lt;/P&gt;

&lt;P&gt;If you could convert time to some value on the range of 0..100, that could be charted.&lt;/P&gt;

&lt;P&gt;It's a serious drawback to the scatterplot; the line chart does 60% of what we want, but connecting the points is often the wrong thing to do. Plotting points against a time axis is what we really need.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2011 03:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33203#M1471</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2011-01-27T03:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this into a scatter plot?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33204#M1472</link>
      <description>&lt;P&gt;Sadly that's not possible as we're relying on time to be used to correlate to other sources. I suppose a line graph without the lines connected would really be what we wanted then but I suppose that's not possible. Oi.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2011 03:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33204#M1472</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-01-27T03:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this into a scatter plot?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33205#M1473</link>
      <description>&lt;P&gt;If scatter is not working, you could try a workaround: set the lines to transparent and show the markers! &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;save a line-chart report out of your search&lt;/LI&gt;
&lt;LI&gt;create a new dashboard and put the report into it&lt;/LI&gt;
&lt;LI&gt;edit the dashboard xml&lt;/LI&gt;
&lt;LI&gt;then under the &amp;lt;chart&amp;gt; element (simplified xml mode) ...&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Insert the following (charting reference in this &lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/CustomChartingConfig-chartlegend#linechart" rel="nofollow"&gt;guide&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.showMarkers"&amp;gt;true&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.chart.markerSize"&amp;gt;3&amp;lt;/option&amp;gt;           
&amp;lt;option name="charting.chart.lineStyle.alpha"&amp;gt;0&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this is now working, try to go to advanced xml mode (&lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/AdvancedIntro#Module_hierarchy" rel="nofollow"&gt;instructions here&lt;/A&gt;). Then under the &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="HiddenChartFormatter"&amp;gt;
&amp;lt;param name="charting.chart"&amp;gt;line&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;put (beware the tags names are different!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="charting.chart.showMarkers"&amp;gt;true&amp;lt;/param&amp;gt;
&amp;lt;param name="charting.chart.markerSize"&amp;gt;3&amp;lt;/param&amp;gt;             
&amp;lt;param name="charting.chart.lineStyle.alpha"&amp;gt;0&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save the dashboard, click on the "Splunk" image top-left to reload them, select your dashboard/view from the menu. &lt;/P&gt;

&lt;P&gt;Here's a sample result&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://www.freeimagehosting.net/uploads/3ed912c825.png" alt="test" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2011 18:43:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-this-into-a-scatter-plot/m-p/33205#M1473</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2011-02-24T18:43:17Z</dc:date>
    </item>
  </channel>
</rss>

