<?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 show multiple values on a tooltip from a table? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294280#M40350</link>
    <description>&lt;P&gt;Hi @japposadas,&lt;/P&gt;

&lt;P&gt;Have you successfully implemented tooltip from this URL?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2014/01/29/add-a-tooltip-to-simple-xml-tables-with-bootstrap-and-a-custom-cell-renderer.html"&gt;https://www.splunk.com/blog/2014/01/29/add-a-tooltip-to-simple-xml-tables-with-bootstrap-and-a-custom-cell-renderer.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In this example, the tooltip will show only message field value.&lt;BR /&gt;
As per your requirement, you want to display other field data in tooltip.like, on &lt;CODE&gt;message&lt;/CODE&gt; column the tooltip should be eg. &lt;CODE&gt;message2&lt;/CODE&gt; field.&lt;/P&gt;

&lt;P&gt;Can you please try below changes in your implemented tooltip from above URL.&lt;/P&gt;

&lt;P&gt;Change in your search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | table message message2 | eval message = message."#####".message2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change in javascript.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;render: function($td, cell) {
    var message = cell.value.split("#####")[0];
    var tip = cell.value.split("#####")[1];

    if(message.length &amp;gt; 48) { message = message.substring(0,47) + "..." }

    $td.html(_.template('&amp;lt;a href="#" data-toggle="tooltip" data-placement="left" title="&amp;lt;%- tip%&amp;gt;"&amp;gt;&amp;lt;%- message%&amp;gt;&amp;lt;/a&amp;gt;', {
        tip: tip,
        message: message
    }));

    // This line wires up the Bootstrap tooltip to the cell markup
    $td.children('[data-toggle="tooltip"]').tooltip();
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In above changes, I have passed &lt;CODE&gt;message&lt;/CODE&gt; and &lt;CODE&gt;message2&lt;/CODE&gt; fields in single field &lt;CODE&gt;message&lt;/CODE&gt; by changing in search and used in javascript. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval message = message."#####".message2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see in updated javascript code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var message = cell.value.split("#####")[0];
var tip = cell.value.split("#####")[1];
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this will help you.&lt;/P&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2017 07:59:06 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2017-11-23T07:59:06Z</dc:date>
    <item>
      <title>How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294279#M40349</link>
      <description>&lt;P&gt;Hi guys, need help here, I have a table  with multiple values, when I hover to a column I need to display other field values. how could I do it. I've already created a table like this &lt;A href="https://www.splunk.com/blog/2014/01/29/add-a-tooltip-to-simple-xml-tables-with-bootstrap-and-a-custom-cell-renderer.html"&gt;https://www.splunk.com/blog/2014/01/29/add-a-tooltip-to-simple-xml-tables-with-bootstrap-and-a-custom-cell-renderer.html&lt;/A&gt; by Jason Conger. I just  need to display more data.&lt;/P&gt;

&lt;P&gt;Here's my table screenshot &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/3880iF155ADF25D4B6210/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>Thu, 23 Nov 2017 01:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294279#M40349</guid>
      <dc:creator>japposadas</dc:creator>
      <dc:date>2017-11-23T01:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294280#M40350</link>
      <description>&lt;P&gt;Hi @japposadas,&lt;/P&gt;

&lt;P&gt;Have you successfully implemented tooltip from this URL?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2014/01/29/add-a-tooltip-to-simple-xml-tables-with-bootstrap-and-a-custom-cell-renderer.html"&gt;https://www.splunk.com/blog/2014/01/29/add-a-tooltip-to-simple-xml-tables-with-bootstrap-and-a-custom-cell-renderer.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In this example, the tooltip will show only message field value.&lt;BR /&gt;
As per your requirement, you want to display other field data in tooltip.like, on &lt;CODE&gt;message&lt;/CODE&gt; column the tooltip should be eg. &lt;CODE&gt;message2&lt;/CODE&gt; field.&lt;/P&gt;

&lt;P&gt;Can you please try below changes in your implemented tooltip from above URL.&lt;/P&gt;

&lt;P&gt;Change in your search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | table message message2 | eval message = message."#####".message2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change in javascript.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;render: function($td, cell) {
    var message = cell.value.split("#####")[0];
    var tip = cell.value.split("#####")[1];

    if(message.length &amp;gt; 48) { message = message.substring(0,47) + "..." }

    $td.html(_.template('&amp;lt;a href="#" data-toggle="tooltip" data-placement="left" title="&amp;lt;%- tip%&amp;gt;"&amp;gt;&amp;lt;%- message%&amp;gt;&amp;lt;/a&amp;gt;', {
        tip: tip,
        message: message
    }));

    // This line wires up the Bootstrap tooltip to the cell markup
    $td.children('[data-toggle="tooltip"]').tooltip();
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In above changes, I have passed &lt;CODE&gt;message&lt;/CODE&gt; and &lt;CODE&gt;message2&lt;/CODE&gt; fields in single field &lt;CODE&gt;message&lt;/CODE&gt; by changing in search and used in javascript. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval message = message."#####".message2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see in updated javascript code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var message = cell.value.split("#####")[0];
var tip = cell.value.split("#####")[1];
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this will help you.&lt;/P&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 07:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294280#M40350</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-23T07:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294281#M40351</link>
      <description>&lt;P&gt;Hi kamlesh_vaghela! thanks for your answer. i've already tried it and it work. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; my problem is I used timechart so my header is date spanned by 1 day. do you have any idea how to get the search results and put it in the cells[ ]? thank you so much&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 09:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294281#M40351</guid>
      <dc:creator>japposadas</dc:creator>
      <dc:date>2017-11-24T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294282#M40352</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;Yes, you can use &lt;CODE&gt;foreach&lt;/CODE&gt; command to append column name as a value in each cell.&lt;/P&gt;

&lt;P&gt;It is something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| foreach "*" [ eval &amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt;='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'."#####"."&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please check the link:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Foreach"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Foreach&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 10:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294282#M40352</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-24T10:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294283#M40353</link>
      <description>&lt;P&gt;Hi kamlesh! how thanks again. i have a question. how can you get all the table headers using javascript?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 02:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294283#M40353</guid>
      <dc:creator>japposadas</dc:creator>
      <dc:date>2017-11-27T02:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294284#M40354</link>
      <description>&lt;P&gt;@japposadas, Looking at your data you should give ** &lt;CODE&gt;Punchcard Custom Visualization&lt;/CODE&gt; ** (&lt;A href="https://splunkbase.splunk.com/app/3129/"&gt;https://splunkbase.splunk.com/app/3129/&lt;/A&gt;) a try. It will give you a lot of hover options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1) Hover any value
2) Hover over column to see value of all rows based on selected column
3) Hover over row to see values of all columns for selected row
4) Hover over legend to see all values falling in Legend range.
5) Size and Color of bubbles will both give you a sense of volume of data.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Nov 2017 05:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294284#M40354</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-27T05:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294285#M40355</link>
      <description>&lt;P&gt;Hi Hi @japposadas, where you want to access table headers in javascript?? In render function? And what is the purpose of same?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/294285#M40355</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-27T18:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show multiple values on a tooltip from a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/544385#M40356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can this tooltip changes be applied to heatmap tooltip? I have only xaxis and yaxis value in the heatmap tooltip when I hover the heatmap blocks like below. Is it possible to add more fields to this tooltip? I have extra fields values that needs to populated like minutes, process name etc.&lt;/P&gt;&lt;P&gt;Could you please advice on the same? I have posted a question please refer this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-more-values-in-heatmap-tooltip/m-p/544059#M37312" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-more-values-in-heatmap-tooltip/m-p/544059#M37312&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:06:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-show-multiple-values-on-a-tooltip-from-a-table/m-p/544385#M40356</guid>
      <dc:creator>spkriyaz</dc:creator>
      <dc:date>2021-03-18T18:06:55Z</dc:date>
    </item>
  </channel>
</rss>

