<?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: Bar Chart Visualization in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235437#M45041</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;
Thanks for this answer but sadly mine is Splunk 6.2 so does not have this function. &lt;BR /&gt;
It would be great for Splunk 6.3 users!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2016 00:42:35 GMT</pubDate>
    <dc:creator>intern_jos</dc:creator>
    <dc:date>2016-01-19T00:42:35Z</dc:date>
    <item>
      <title>Bar Chart Visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235434#M45038</link>
      <description>&lt;P&gt;I would like to know if there is a way to display the total number of events at the top of the bar chart instead of using mouse over to see the exact number of events.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 07:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235434#M45038</guid>
      <dc:creator>intern_jos</dc:creator>
      <dc:date>2016-01-18T07:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235435#M45039</link>
      <description>&lt;P&gt;Hi intern_jos,&lt;/P&gt;

&lt;P&gt;Yes, you can enable this in the Visualization Format options:&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/969iAF76494075B4703B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
and click on &lt;CODE&gt;show data values&lt;/CODE&gt;. The result will be the values on the bars:&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/970iDB745EDFDD22BC40/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;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 07:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235435#M45039</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-01-18T07:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235436#M45040</link>
      <description>&lt;P&gt;Hi  intern_jos&lt;BR /&gt;
use these files if you work on splunk 6.2.x&lt;BR /&gt;&lt;BR /&gt;
1- xml code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="custom_chart.js" stylesheet="custom_chart.css"&amp;gt;
    &amp;lt;label&amp;gt;count by sourcetype&amp;lt;/label&amp;gt;
   &amp;lt;fieldset autoRun="false" submitButton="false"&amp;gt;

    &amp;lt;input type="time" token="tm" searchWhenChanged="true"&amp;gt;
    &amp;lt;label&amp;gt;Select a time:&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;All Time&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;



  &amp;lt;/fieldset&amp;gt;


  &amp;lt;row grouping="2"&amp;gt;
        &amp;lt;html&amp;gt;
          &amp;lt;h2&amp;gt;&amp;lt;strong&amp;gt;count by sourcetype&amp;lt;/strong&amp;gt;&amp;lt;/h2&amp;gt;
            &amp;lt;div id="chart1" /&amp;gt;
        &amp;lt;/html&amp;gt;
        &amp;lt;table id="table1"&amp;gt;
            &amp;lt;searchString&amp;gt;index=_internal |stats count by sourcetype&amp;lt;/searchString&amp;gt;
            &amp;lt;earliestTime&amp;gt;$tm.earliest$&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;$tm.latest$&amp;lt;/latestTime&amp;gt;
        &amp;lt;/table&amp;gt;
    &amp;lt;/row&amp;gt;


&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2- here is the js file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    'underscore',
    'jquery',

    'splunkjs/mvc/utils',
    'splunkjs/mvc',
    'splunkjs/mvc/d3chart/d3chartview',
    'util/moment',
    'splunkjs/mvc/simplexml/ready!'
], function(_, $, utils, mvc, D3ChartView, moment) {

    // Re-use the search manager of the results table
    // var SearchManager = require("splunkjs/mvc/searchmanager");
     var tableManagerid1 = mvc.Components.get('table1').settings.get('managerid');
    // Create the D3 chart view
    var Barchart1 = new D3ChartView({
        "id": "chart1",
        "managerid": tableManagerid1,
        "type": "multiBarHorizontalChart",
        "drilldown": "full",
        "drilldownRedirect": false,
        "el": $('#chart1')
    }).render();

    Barchart1.settings.set("setup", function(chart) {
        // Configure chart formatting
        chart.color(d3.scale.category10().range())
        chart.showControls(true);
        chart.showValues(true); //Show bar value next to each bar.
        chart.tooltips(true);

    }); 

});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3- and the css file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#chart1
 {
    height: 450px;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jan 2016 08:08:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235436#M45040</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-01-18T08:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235437#M45041</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;
Thanks for this answer but sadly mine is Splunk 6.2 so does not have this function. &lt;BR /&gt;
It would be great for Splunk 6.3 users!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 00:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Bar-Chart-Visualization/m-p/235437#M45041</guid>
      <dc:creator>intern_jos</dc:creator>
      <dc:date>2016-01-19T00:42:35Z</dc:date>
    </item>
  </channel>
</rss>

