<?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 can I format a chart to show values cleanly/ without overlap based on zoom? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334061#M21692</link>
    <description>&lt;P&gt;Hi @niketnilay , &lt;/P&gt;

&lt;P&gt;It is an alternative and I'm going to use it,  looks likes it works well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But I was thinks in something where I can turn on/off the value labels  in realtime on Splunk Charts, but I guess its not possible yet.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;Regards, Matheus Vinícius&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 22:22:42 GMT</pubDate>
    <dc:creator>matheusaatag</dc:creator>
    <dc:date>2017-11-07T22:22:42Z</dc:date>
    <item>
      <title>How can I format a chart to show values cleanly/ without overlap based on zoom?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334058#M21689</link>
      <description>&lt;P&gt;My chart has a lot of columns, so the values overlap each other.&lt;/P&gt;

&lt;P&gt;I need configure a shortcut that I can use when I want to display the data labels values.&lt;/P&gt;

&lt;P&gt;For example, display the labels only when I zoom in, so the labels will not overlap. &lt;/P&gt;

&lt;P&gt;Anyone know if there's a solution available for this?&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/3741i3E0C82D412FEB1D5/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;Thanks.&lt;/P&gt;

&lt;P&gt;Regards, Matheus.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334058#M21689</guid>
      <dc:creator>matheusaatag</dc:creator>
      <dc:date>2017-10-25T13:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a chart to show values cleanly/ without overlap based on zoom?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334059#M21690</link>
      <description>&lt;P&gt;@matheusaatag, you can pass a token to Simple XML Chart Configuration &lt;CODE&gt;charting.chart.showDataLabels&lt;/CODE&gt; and switch the token between &lt;CODE&gt;minmax&lt;/CODE&gt; and &lt;CODE&gt;all&lt;/CODE&gt; as per number of results being displayed in the chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.showDataLabels"&amp;gt;$dataLabelOption$&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please find attached below a Run Anywhere Search where &lt;CODE&gt;all&lt;/CODE&gt; data labels are displayed only if &lt;CODE&gt;number results is 100 or less&lt;/CODE&gt;, or else it switches to &lt;CODE&gt;minmax&lt;/CODE&gt;. This example uses Time Picker to run the required search and set Data Label Option required as per number of results. This logic can also be adjusted for:&lt;BR /&gt;
1) Toggle Data Label Option based on Time Range (lets say &amp;lt;60 min implies all label etc)&lt;BR /&gt;
2) Chart Selection which will require a separate chart to be drawn on selection.&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/3737i7F2FC2601536F6E8/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;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Timechart Data Label Min Max vs All Values&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Show all datalabels if result count &amp;lt;=100 results else show only minimum and maximum (result count: $tokResultCount$)&amp;lt;/title&amp;gt;
      &amp;lt;input type="time" token="tokTime" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Time Filter&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" sourcetype="splunkd" log_level!="INFO"
      |  timechart span=1m count as Success cont=f&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="$job.resultCount$&amp;lt;=100"&amp;gt;
              &amp;lt;set token="dataLabelOption"&amp;gt;all&amp;lt;/set&amp;gt;
              &amp;lt;set token="tokResultCount"&amp;gt;$job.resultCount$&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="dataLabelOption"&amp;gt;minmax&amp;lt;/set&amp;gt;
              &amp;lt;set token="tokResultCount"&amp;gt;$job.resultCount$&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;$dataLabelOption$&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2017 20:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334059#M21690</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-28T20:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a chart to show values cleanly/ without overlap based on zoom?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334060#M21691</link>
      <description>&lt;P&gt;@matheusaatag, were you able to test out the solution provided? Please check and confirm!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334060#M21691</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-07T18:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a chart to show values cleanly/ without overlap based on zoom?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334061#M21692</link>
      <description>&lt;P&gt;Hi @niketnilay , &lt;/P&gt;

&lt;P&gt;It is an alternative and I'm going to use it,  looks likes it works well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But I was thinks in something where I can turn on/off the value labels  in realtime on Splunk Charts, but I guess its not possible yet.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;Regards, Matheus Vinícius&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334061#M21692</guid>
      <dc:creator>matheusaatag</dc:creator>
      <dc:date>2017-11-07T22:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a chart to show values cleanly/ without overlap based on zoom?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334062#M21693</link>
      <description>&lt;P&gt;@matheusaatag, I thought you wanted solution to be automatic based on timeline selection. If you want to put in an input to toggle between &lt;CODE&gt;all&lt;/CODE&gt; and &lt;CODE&gt;minmax&lt;/CODE&gt; data labels (or even &lt;CODE&gt;none&lt;/CODE&gt; data label option), you can definitely do it.&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/3738i0C251D72FD9C6F2E/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;Please find below run anywhere dashboard using a checkbox to do the same (you can use a radio button if you have to toggle between all three options):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Show/Hide Labels using check box&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="showChartLabels"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;choice value="showAllLabels"&amp;gt;Show All Labels&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$showChartLabels$==&amp;amp;quot;showAllLabels&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="tokShowChartLabels"&amp;gt;all&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="tokShowChartLabels"&amp;gt;minmax&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$showChartLabels$ | $tokShowChartLabels$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!="INFO"
|  timechart count as Errors&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;$tokShowChartLabels$&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 06:17:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334062#M21693</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-08T06:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a chart to show values cleanly/ without overlap based on zoom?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334063#M21694</link>
      <description>&lt;P&gt;is it possible to show data label values only for the selected particular legend and not for all?&lt;/P&gt;

&lt;P&gt;Current values of charting.chart.showDataLabels is all, min/max and none. can we use any token to show only data label values for only selected legend and how?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 05:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334063#M21694</guid>
      <dc:creator>Chinmai</dc:creator>
      <dc:date>2018-05-22T05:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format a chart to show values cleanly/ without overlap based on zoom?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334064#M21695</link>
      <description>&lt;P&gt;@Chinmai, since your query is slightly different from the original issue posted here, I have answered your new question posted at &lt;A href="https://answers.splunk.com/answers/659704/how-to-avoid-overlapping-of-data-label-values-in-a.html"&gt;https://answers.splunk.com/answers/659704/how-to-avoid-overlapping-of-data-label-values-in-a.html&lt;/A&gt;. Please try out and confirm!&lt;/P&gt;

&lt;P&gt;If you found this answer/topic useful, do up-vote the same &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 16:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-format-a-chart-to-show-values-cleanly-without-overlap/m-p/334064#M21695</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-22T16:20:28Z</dc:date>
    </item>
  </channel>
</rss>

