<?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: Chart increment problem (decimal not integer) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344621#M102074</link>
    <description>&lt;P&gt;Something like :&lt;/P&gt;

&lt;P&gt;index=... | stats dc(file) by user&lt;/P&gt;

&lt;P&gt;timepicker : today&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 15:56:15 GMT</pubDate>
    <dc:creator>splunkreal</dc:creator>
    <dc:date>2017-04-24T15:56:15Z</dc:date>
    <item>
      <title>Chart increment problem (decimal not integer)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344619#M102072</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;

&lt;P&gt;I've a problem : I can't set integers for the X axis, I have sometimes decimal values :&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/2818i1779C5DB0AA43DB9/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;XML options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&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;0&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;bar&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&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.showDataLabels"&amp;gt;none&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;none&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="link.visible"&amp;gt;0&amp;lt;/option&amp;gt;

    &amp;lt;option name="charting.axisLabelsX.integerUnits"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisLabelsX.majorUnit"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisX.minimumNumber"&amp;gt;1&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344619#M102072</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2017-04-24T13:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Chart increment problem (decimal not integer)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344620#M102073</link>
      <description>&lt;P&gt;It depends on your search; what is your search string and what is your &lt;CODE&gt;timepicker&lt;/CODE&gt; setting for it?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:44:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344620#M102073</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-24T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Chart increment problem (decimal not integer)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344621#M102074</link>
      <description>&lt;P&gt;Something like :&lt;/P&gt;

&lt;P&gt;index=... | stats dc(file) by user&lt;/P&gt;

&lt;P&gt;timepicker : today&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344621#M102074</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2017-04-24T15:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Chart increment problem (decimal not integer)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344622#M102075</link>
      <description>&lt;P&gt;@realsplunk... You are using Bar chart so X-axis is actually Y-axis in the chart. The reason why you are seeing decimals is because Splunk chart automatically adjusts Major Units of an axis based on Minimum and Maximum Data Points. Based on the screenshot your Min and Max points are 0 and 1 hence the intervals are in decimal. You can set the majorUnit to 1 to stop this. However, you should do this only if your maximum value is low (preferably in 1-10 or so). You can either add the following in Simple XML or set the &lt;STRONG&gt;Interval&lt;/STRONG&gt; from Chart Settings in UI (as shown in attached image).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.axisLabelsY.majorUnit"&amp;gt;1&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&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/2817i13D0AF0644B2C431/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 18:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344622#M102075</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-24T18:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Chart increment problem (decimal not integer)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344623#M102076</link>
      <description>&lt;P&gt;Thanks a lot!!! That was ambiguous and misleading.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 08:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-increment-problem-decimal-not-integer/m-p/344623#M102076</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2017-04-25T08:28:21Z</dc:date>
    </item>
  </channel>
</rss>

