Dashboards & Visualizations

How to hide a title on a single value panel in the dashboard?

adubblenie
New Member

Hello,

I want to display two single values on the same line in one panel. Because I only need to use one title for each value, the right value is displaying higher than the left value. I've tried adding in black spaces in the XML to make up for the lack of title, but it's not working. Is there anyway I can fix this? I'm not sure how I would go about fixing it if I used CSS either. Any suggestions?

Tags (5)
0 Karma

fdi01
Motivator

use `` tag to do it like this :

<title>"Value Title"</title>
<description>This example shows description Values </description>
 <row>
 <single>
         <search>
       <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
     </search>
     <option name="classField">range</option>
     <option name="field">value</option>
     <option name="drilldown">none</option>
     <option name="linkView">search</option>
     <option name="underLabel">Availability</option>
   </single>
   <single>
     <search>
       <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
     </search>
     <option name="classField">range</option>
     <option name="field">value</option>
     <option name="drilldown">none</option>
     <option name="linkView">search</option>
     <option name="underLabel">Performance</option>
   </single>
 </row>
0 Karma

adubblenie
New Member

Thanks, but I think that will give the entire tier a title. I want multiple single values lined up in one panel... have a look at my image here to get a better understanding.

http://imgur.com/nke5RTv

Thanks!

0 Karma

adubblenie
New Member
<panel>
  <title>"Title"</title>
  <single>
    <title>"Value Title"</title>
    <search>
      <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
    </search>
    <option name="classField">range</option>
    <option name="field">value</option>
    <option name="drilldown">none</option>
    <option name="linkView">search</option>
    <option name="underLabel">Availability</option>
  </single>
  <single>
    <search>
      <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
    </search>
    <option name="classField">range</option>
    <option name="field">value</option>
    <option name="drilldown">none</option>
    <option name="linkView">search</option>
    <option name="underLabel">Performance</option>
  </single>
0 Karma

MichaelPriest
Communicator

I've put your code into a dashboard but I can't see your issue, could you be a little more descriptive please so i can help.

0 Karma

adubblenie
New Member

Sure. I've added the second title back into the code below for better understanding. Because there is a title on the first Single Value, but not the second, the right value is displaying higher on the panel than the left one. I'd like them to be even, so I basically want to trick the code into thinking there is a title on the second Single Value so they display correctly.

 <title>"Value Title"</title>
 <search>
   <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Availability</option>



 <search>
   <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Performance</option>
0 Karma

adubblenie
New Member

Sorry... I noticed the code didn't post correctly.

 <title>"Value Title"</title>
 <search>
   <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Availability</option>


 <search>
  <title> </title>
   <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Performance</option>
0 Karma

adubblenie
New Member

Here's an image of what's happening to give you more clarity.

0 Karma

adubblenie
New Member
0 Karma

stephanefotso
Motivator

Can we get your sample code?

SGF
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...