<?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: Why are lines not showing up for line graph? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203030#M12736</link>
    <description>&lt;P&gt;It will just be a line growing from the lower-left corner to the upper-right corner if you use &lt;CODE&gt;epoch&lt;/CODE&gt;.  Perhaps your &lt;CODE&gt;TIME&lt;/CODE&gt; field is really a &lt;CODE&gt;duration&lt;/CODE&gt; field.  If so, try swapping out &lt;CODE&gt;latest(TIME)&lt;/CODE&gt; with &lt;CODE&gt;latest(tostring(TIME, "duration"))&lt;/CODE&gt; and that is probably what you are trying to do.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2015 17:05:05 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-09-01T17:05:05Z</dc:date>
    <item>
      <title>Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203020#M12726</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I am trying to put multiple lines on a line graph. However, the lines are not showing up. Here is a picture of the panel.&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/625iE28F1671E86491EF/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 XML for my dashboard is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;title&amp;gt;Completion Times of Each "Thing"&amp;lt;/title&amp;gt;
        &amp;lt;searchString&amp;gt;host=... source = "..." SP Position="Finished" | eval Completion_Time=tonumber(replace(Completion_Time,"(\d+):(\d+):(\d+)","\1.\2")) | timechart limit=100 latest(TIME) as Completion_Time by FinishedName&amp;lt;/searchString&amp;gt;
        &amp;lt;earliestTime&amp;gt;$timetoken.earliest$&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;$timetoken.latest$&amp;lt;/latestTime&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can anyone give insight on this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 15:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203020#M12726</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203021#M12727</link>
      <description>&lt;P&gt;I would like to have completion time on the y axis.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 15:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203021#M12727</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T15:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203022#M12728</link>
      <description>&lt;P&gt;Do you have a field called TIME? In your search you are showing the latest TIME. If you don't have it, it won't show data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart limit=100 latest(TIME) as Completion_Time by FinishedName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't know much about your data but, taking in consideration the eval i believe you meant to use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;latest(Completion_Time)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:13:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203022#M12728</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2015-09-01T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203023#M12729</link>
      <description>&lt;P&gt;Since you have a legend there, you do have multiple series values in the data itself.   So what's probably happening here is that you have "nullValueMode" set to "gaps",  and all of the numerical values have a null value in the time bucket before, and a null value in the timebucket after.    nullValueMode actually causes this confusion quite often.    &lt;/P&gt;

&lt;P&gt;with chartType set to line and nullValueMode set to "gaps", (and showMarkers left to its default setting of False),   the charting will draw lines on the graph only between consecutive values.   So if a point in a given series has null values in the time buckets immediately before and immediately after, that point will not get drawn at all.   You can stumble across it by mousing around in the chart randomly.  Needless to say this is a little confusing,  so much so that it should probably be considered an error state. &lt;/P&gt;

&lt;P&gt;Anyway, try changing nullValueMode to "connect" or to "zero" and see which one you like best.   Alternately you can revisit the search language generating your chart and depending on the search language there's most likely another way to get the data such that you have no empty values, or explicit zeros there install of nulls. &lt;/P&gt;

&lt;P&gt;Here's another answers post showing the same problem and same solution. &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/31519/gaps-in-line-graph.html"&gt;http://answers.splunk.com/answers/31519/gaps-in-line-graph.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Incidentally, one somewhat common way this can arise,  is if the underlying data (be it summary index data, or just plain old raw data) has an underlying granularity that is courser than the granularity of the search language you're using.   For example you might be charting a value that only gets written to the logs every 30 minutes but you're using a timechart command with span=10min.   Such a chart, with this combination of nullValueMode etc,  would never be able to chart a single point. &lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203023#M12729</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2015-09-01T16:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203024#M12730</link>
      <description>&lt;P&gt;You can only timechart numbers and since your &lt;CODE&gt;TIME&lt;/CODE&gt; field almost certainly has colons and hyphens, Splunk very rightly does not consider this a number so it refuses-to/cannot graph them on the Y-Axis.  If you convert &lt;CODE&gt;TIME&lt;/CODE&gt; to &lt;CODE&gt;epoch&lt;/CODE&gt; then it will graph but it will be a really strange graph.  Click on your graph to &lt;CODE&gt;drilldown&lt;/CODE&gt; and the click on the &lt;CODE&gt;Statistics&lt;/CODE&gt; tab and you will see your non-number timechart data.  That is the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203024#M12730</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-01T16:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203025#M12731</link>
      <description>&lt;P&gt;Update:   Also yes it is crucial that the "TIME" values you're charting are at least vaguely numerical.  timechart can be pretty forgiving about noise in there but if TIME doesn't look at all like a number it wont chart anything for latest(TIME)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203025#M12731</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2015-09-01T16:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203026#M12732</link>
      <description>&lt;P&gt;I tried connect and zero, however nothing shows up still.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203026#M12732</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203027#M12733</link>
      <description>&lt;P&gt;Yes I do have a field called TIME&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203027#M12733</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203028#M12734</link>
      <description>&lt;P&gt;Doing latest(Completion_Time) gives back no results&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203028#M12734</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T16:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203029#M12735</link>
      <description>&lt;P&gt;Why will it be a strange graph?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203029#M12735</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203030#M12736</link>
      <description>&lt;P&gt;It will just be a line growing from the lower-left corner to the upper-right corner if you use &lt;CODE&gt;epoch&lt;/CODE&gt;.  Perhaps your &lt;CODE&gt;TIME&lt;/CODE&gt; field is really a &lt;CODE&gt;duration&lt;/CODE&gt; field.  If so, try swapping out &lt;CODE&gt;latest(TIME)&lt;/CODE&gt; with &lt;CODE&gt;latest(tostring(TIME, "duration"))&lt;/CODE&gt; and that is probably what you are trying to do.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203030#M12736</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-01T17:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203031#M12737</link>
      <description>&lt;P&gt;And what I did was have it as a stats table first then I tried to convert it to a graph.. And you are correct TIME has colons.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203031#M12737</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T17:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203032#M12738</link>
      <description>&lt;P&gt;Instead of making it a string should I be trying to make it a number so I can graph it? And the TIME is the TIME of the indexed information. I am in mountain time but Splunk is in GMT so I used TIME to get the mountain time.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:19:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203032#M12738</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203033#M12739</link>
      <description>&lt;P&gt;Hmm should I change TIME into a number? By removing the colons&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203033#M12739</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T17:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203034#M12740</link>
      <description>&lt;P&gt;If you use &lt;CODE&gt;strptime&lt;/CODE&gt; to convert your &lt;CODE&gt;TIME&lt;/CODE&gt; variable to an &lt;CODE&gt;epoch&lt;/CODE&gt; (which is a number), then your graph will "work" but, as I mentioned, such a visualization is pretty useless.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:27:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203034#M12740</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-01T17:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203035#M12741</link>
      <description>&lt;P&gt;That is true. I think a work around I saw was changing it to a decimal. HH.MM&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203035#M12741</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T17:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203036#M12742</link>
      <description>&lt;P&gt;That will work: use &lt;CODE&gt;strptime&lt;/CODE&gt; to convert to epoch, then use &lt;CODE&gt;strftime&lt;/CODE&gt; with &lt;CODE&gt;"%H.%M"&lt;/CODE&gt; to convert to hour-decimal-minute, which will be plottable.  Don't forget to click "Accept" to close the question.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 18:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203036#M12742</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-01T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why are lines not showing up for line graph?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203037#M12743</link>
      <description>&lt;P&gt;Thanks woodcock will try out now!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 19:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-lines-not-showing-up-for-line-graph/m-p/203037#M12743</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-09-01T19:09:57Z</dc:date>
    </item>
  </channel>
</rss>

