<?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 create custom dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377965#M42312</link>
    <description>&lt;P&gt;For example my query&lt;/P&gt;

&lt;P&gt;index=_internal|stats count by name&lt;/P&gt;

&lt;P&gt;it will display all count with the names. now i want to display different color bulbs based on count value for each individual item.&lt;/P&gt;

&lt;P&gt;whenever i executed query above query by your example it is showing only one row,but i need to display all the names count with different bulb colors based on range.&lt;/P&gt;

&lt;P&gt;Please help how to do this&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 12:21:29 GMT</pubDate>
    <dc:creator>ramesh12345</dc:creator>
    <dc:date>2019-04-02T12:21:29Z</dc:date>
    <item>
      <title>How to create custom dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377961#M42308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query which displays max percentages.i am displaying with default splunk provided radial gauge.But i want to display the same in with an image. i need to display in bulb(red,green,orange) as per the percentages defined,it automatically needs to change according to the percentages.(&amp;gt;80 green,&amp;lt;80 and &amp;gt;60 orange &amp;lt;60 red)&lt;BR /&gt;
How to do this custom dashboard?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377961#M42308</guid>
      <dc:creator>ramesh12345</dc:creator>
      <dc:date>2019-04-01T08:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create custom dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377962#M42309</link>
      <description>&lt;P&gt;@ramesh12345 &lt;/P&gt;

&lt;P&gt;If you want to go with only radial gauge then check below links. You can set a range in settings.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkLight/7.2.4/References/Datavisualizationlibrary#Gauges"&gt;https://docs.splunk.com/Documentation/SplunkLight/7.2.4/References/Datavisualizationlibrary#Gauges&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/CreateGauges#Radial_gauge"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/CreateGauges#Radial_gauge&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can display images in the Dashboard then you can use achieve by using HTML panel.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/BuildandeditdashboardswithSimplifiedXML#Use_the_HTML_panel_to_display_static_text"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/BuildandeditdashboardswithSimplifiedXML#Use_the_HTML_panel_to_display_static_text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Can you please share more information about your dashboard and how you are planning to display bulb image??&lt;BR /&gt;
Dashboard mock will preferable &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377962#M42309</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-01T08:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create custom dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377963#M42310</link>
      <description>&lt;P&gt;I just want to display  bulb(it should be dynamically changes color as per the percentage) instead of Gauge.&lt;BR /&gt;
Red,Green,Orange colors.how to do this.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 09:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377963#M42310</guid>
      <dc:creator>ramesh12345</dc:creator>
      <dc:date>2019-04-01T09:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create custom dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377964#M42311</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this, based on value image will get change. For sample purpose, I had made a text box to enter the value. Modify it accordingly to your requirement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
   &amp;lt;label&amp;gt;Image&amp;lt;/label&amp;gt;
   &amp;lt;fieldset submitButton="false"&amp;gt;
     &amp;lt;input type="text" token="value"&amp;gt;
       &amp;lt;label&amp;gt;Enter number to test(1-100)&amp;lt;/label&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
   &amp;lt;row&amp;gt;
     &amp;lt;panel depends="$path$"&amp;gt;
       &amp;lt;html&amp;gt;
         &amp;lt;body&amp;gt;
           &amp;lt;tr&amp;gt;
             &amp;lt;td&amp;gt;
             &amp;lt;img src="$path$" height="200" width="200"/&amp;gt;
           &amp;lt;/td&amp;gt;
           &amp;lt;/tr&amp;gt;
         &amp;lt;/body&amp;gt;
       &amp;lt;/html&amp;gt;
     &amp;lt;/panel&amp;gt;
     &amp;lt;panel depends="$hide$"&amp;gt;
      &amp;lt;single&amp;gt;
         &amp;lt;search&amp;gt;
           &amp;lt;query&amp;gt;|makeresults |eval temp=$value$ | table temp&amp;lt;/query&amp;gt;
           &amp;lt;done&amp;gt;
             &amp;lt;condition match="'result.temp' &amp;gt;=80"&amp;gt;
               &amp;lt;set token="path"&amp;gt;/static/app/splunk/green.jpg&amp;lt;/set&amp;gt;
             &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="'result.temp' &amp;gt;=60 AND 'result.temp' &amp;lt;80"&amp;gt;
               &amp;lt;set token="path"&amp;gt;/static/app/splunk/orange.jpg&amp;lt;/set&amp;gt;
             &amp;lt;/condition&amp;gt;
             &amp;lt;condition match=" 'result.temp' &amp;lt;60"&amp;gt;
               &amp;lt;set token="path"&amp;gt;/static/app/splunk/red.jpg&amp;lt;/set&amp;gt;
             &amp;lt;/condition&amp;gt;
           &amp;lt;/done&amp;gt;
           &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
           &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;
         &amp;lt;/search&amp;gt;
      &amp;lt;/single&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
 &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Apr 2019 11:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377964#M42311</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-04-01T11:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create custom dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377965#M42312</link>
      <description>&lt;P&gt;For example my query&lt;/P&gt;

&lt;P&gt;index=_internal|stats count by name&lt;/P&gt;

&lt;P&gt;it will display all count with the names. now i want to display different color bulbs based on count value for each individual item.&lt;/P&gt;

&lt;P&gt;whenever i executed query above query by your example it is showing only one row,but i need to display all the names count with different bulb colors based on range.&lt;/P&gt;

&lt;P&gt;Please help how to do this&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:21:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377965#M42312</guid>
      <dc:creator>ramesh12345</dc:creator>
      <dc:date>2019-04-02T12:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create custom dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377966#M42313</link>
      <description>&lt;P&gt;@ramesh12345 you should check out Table with Icon example in the &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples App&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;Please refer to one of my previous answers which demos three examples including &lt;CODE&gt;icons based on range&lt;/CODE&gt; &lt;A href="https://answers.splunk.com/answers/637615/why-is-the-table-cell-highlighting-not-reading-the.html"&gt;https://answers.splunk.com/answers/637615/why-is-the-table-cell-highlighting-not-reading-the.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377966#M42313</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-04-02T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create custom dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377967#M42314</link>
      <description>&lt;P&gt;Bulb Visualization Sample&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;panel&amp;gt;
   &amp;lt;html&amp;gt;
     &amp;lt;style&amp;gt;
       /* CSS for table response_time_highlight_icon 
        #response_time_highlight_icon tr{

               width: 40px;
               height: 40px;
               float: left;
        }*/
       #response_time_highlight_icon td.icon img{
           text-align: center;
            width: 100px;
            height: 100px;
       }
       #response_time_highlight_icon td.icon i {
           font-size: 25px;
           text-shadow: 1px 1px #aaa;
       }
       #response_time_highlight_icon td.icon .severe {
           color: indianred;
       }
       #response_time_highlight_icon td.icon .elevated {
           color: orange;
       }
       #response_time_highlight_icon td.icon .low {
           color: #lightgreen ;
       }

       /* CSS for table response_time_highlight_cell */
       #response_time_highlight_cell td.range-low {
           background-color: lightgreen !important;
       }
       #response_time_highlight_cell td.range-elevated {
           background-color: orange !important;
           font-weight: bold;
       }
       #response_time_highlight_cell td.range-severe {
           background-color: indianred !important;
           font-weight: bold;
       }

       /* CSS for table response_time_highlight_row */
       #response_time_highlight_row tr td {
           background-color: lightgreen !important;
       }
       #response_time_highlight_row tr.range-elevated td {
           background-color: orange !important;
       }
       #response_time_highlight_row tr.range-severe td {
           background-color: indianred !important;
       }
       #response_time_highlight_row .table td {
           border-top: 1px solid #fff;
       }
     &amp;lt;/style&amp;gt;


   &amp;lt;table id="response_time_highlight_icon"&amp;gt;
     &amp;lt;search&amp;gt;
       &amp;lt;query&amp;gt;index=_internal|stats count by name|  eval "Total Count"=case('count'&amp;gt;2800,"severe_".'count','count'&amp;amp;lt;2800 AND 'count'&amp;gt;=2000,"elevated_".'count',true(),"low_".'count')|fields - count,name&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
     &amp;lt;/search&amp;gt;
     &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
     &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
     &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
     &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
     &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
     &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
     &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
   &amp;lt;/table&amp;gt;
 &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Java Script Code is:&lt;/P&gt;

&lt;P&gt;require([&lt;BR /&gt;
     'underscore',&lt;BR /&gt;
     'jquery',&lt;BR /&gt;
     'splunkjs/mvc',&lt;BR /&gt;
     'splunkjs/mvc/tableview',&lt;BR /&gt;
     'splunkjs/mvc/simplexml/ready!'&lt;BR /&gt;
 ], function(&lt;EM&gt;, $, mvc, TableView) {&lt;BR /&gt;
     // Translations from rangemap results to CSS class&lt;BR /&gt;
     var ICONS = {&lt;BR /&gt;
         severe: 'alert-circle',&lt;BR /&gt;
         elevated: 'alert',&lt;BR /&gt;
         low: 'check-circle'&lt;BR /&gt;
     };&lt;BR /&gt;
     var RangeMapIconRenderer = TableView.BaseCellRenderer.extend({&lt;BR /&gt;
         canRender: function(cell) {&lt;BR /&gt;
             // Only use the cell renderer for the "Total Count" field&lt;BR /&gt;
             return cell.field === 'Total Count';&lt;BR /&gt;
         },&lt;BR /&gt;
         render: function($td, cell) {&lt;BR /&gt;
             var icon = 'check-circle';&lt;BR /&gt;
             // Fetch the icon for the value&lt;BR /&gt;
             var cellArray = cell.value.split("&lt;/EM&gt;");&lt;BR /&gt;
             var cellValue = cellArray&lt;A href="https://community.splunk.com/storage/temp/271785-test.png" target="_blank"&gt;1&lt;/A&gt;;&lt;BR /&gt;
             var range = cellArray[0];&lt;BR /&gt;
             if (ICONS.hasOwnProperty(cellArray[0])) {&lt;BR /&gt;
                 icon = ICONS[cellArray[0]];&lt;BR /&gt;
             }&lt;BR /&gt;
             // Create the icon element and add it to the table cell&lt;BR /&gt;
            /* $td.addClass('icon').html(&lt;EM&gt;.template('&lt;I class="icon-&amp;lt;%-icon%&amp;gt; &amp;lt;%- range %&amp;gt;&amp;quot; title=&amp;quot;&amp;lt;%- range %&amp;gt;&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;', {&amp;lt;br&amp;gt;
                 icon: icon,&amp;lt;br&amp;gt;
                 range: cell.value&amp;lt;br&amp;gt;
             }));*/&amp;lt;br&amp;gt;
                          $td.addClass('icon').html(&amp;lt;/em&amp;gt;.template('&amp;lt;div  style=" 100=""&gt;&lt;/I&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV style="width:100%; float:left;"&gt;&lt;IMG class="icon-&amp;lt;%-icon%&amp;gt; &amp;lt;%- range %&amp;gt;&amp;quot; title=&amp;quot;&amp;lt;%- range %&amp;gt;&amp;quot; src=&amp;quot;/static/app/bulb-app5/&amp;lt;%- range %&amp;gt;.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div  style=" 100="" /&gt;&amp;lt;%- cellValue %&amp;gt;&lt;/DIV&gt;&lt;DIV style="clear:both;"&gt;&lt;/DIV&gt;', {&lt;BR /&gt;
                 icon: icon,&lt;BR /&gt;
                 range: cellArray[0],&lt;BR /&gt;
                 cellValue:cellValue&lt;BR /&gt;
             }));&lt;BR /&gt;
         }&lt;BR /&gt;
     });&lt;BR /&gt;
     var CustomRangeRenderer = TableView.BaseCellRenderer.extend({&lt;BR /&gt;
         canRender: function(cell) {&lt;BR /&gt;
             // Enable this custom cell renderer for 'Total Count'&lt;BR /&gt;
             return _(['Total Count']).contains(cell.field);&lt;BR /&gt;
         },&lt;BR /&gt;
         render: function($td, cell) {&lt;BR /&gt;
             // Add a class to the cell based on the returned value&lt;BR /&gt;
             var strSLA = cell.value;&lt;BR /&gt;
             if (strSLA!==undefined){&lt;BR /&gt;
                 strSLA=strSLA.trim();&lt;BR /&gt;
                 $td.addClass('range-cell').addClass("range-"+strSLA);&lt;BR /&gt;
             }&lt;BR /&gt;
             $td.text(strSLA).addClass('string');&lt;BR /&gt;
         }&lt;BR /&gt;
     });&lt;BR /&gt;&lt;BR /&gt;
     mvc.Components.get("response_time_highlight_icon").getVisualization(function(tableView){&lt;BR /&gt;
         // Register custom cell renderer, the table will re-render automatically&lt;BR /&gt;
         tableView.addCellRenderer(new RangeMapIconRenderer());&lt;BR /&gt;
     });&lt;BR /&gt;&lt;BR /&gt;
     mvc.Components.get("response_time_highlight_cell").getVisualization(function(tableView){&lt;BR /&gt;
         tableView.on("rendered", function() {&lt;BR /&gt;
             console.log("Table Rendered");&lt;BR /&gt;
             setTimeout(function(){&lt;BR /&gt;
                 $("#response_time_highlight_cell tr").each(function() {&lt;BR /&gt;
                     var strSLA=$(this).find("td:last").html();&lt;BR /&gt;
                     if (strSLA!==undefined){&lt;BR /&gt;
                         strSLA=strSLA.trim();&lt;BR /&gt;
                         $(this).find("td:nth-child(3)").addClass("range-cell").addClass("range-"+strSLA);&lt;BR /&gt;
                     }&lt;BR /&gt;
                 });&lt;BR /&gt;
             },100);&lt;BR /&gt;
         });&lt;BR /&gt;
     });&lt;BR /&gt;
     mvc.Components.get("response_time_highlight_row").getVisualization(function(tableView) {&lt;BR /&gt;
         tableView.on('rendered', function() {&lt;BR /&gt;
             setTimeout(function(){&lt;BR /&gt;
                 // Apply class of the cells to the parent row in order to color the whole row&lt;BR /&gt;
                 tableView.$el.find('td.range-cell').each(function() {&lt;BR /&gt;
                     $(this).parents('tr').addClass(this.className);&lt;BR /&gt;
                 });&lt;BR /&gt;
             },100);&lt;BR /&gt;
         });&lt;BR /&gt;
         // Add custom cell renderer, the table will re-render automatically.&lt;BR /&gt;
         tableView.addCellRenderer(new CustomRangeRenderer());&lt;BR /&gt;
     });&lt;BR /&gt;
 });&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/271785-test.png" alt="alt text" /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Output is showing like this,But i want to display horizontally.Bulbs should display sided by side.How to do this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-custom-dashboard/m-p/377967#M42314</guid>
      <dc:creator>ramesh12345</dc:creator>
      <dc:date>2020-09-29T23:59:19Z</dc:date>
    </item>
  </channel>
</rss>

