Dashboards & Visualizations

How to break the line inside title tag

9198459056
Loves-to-Learn Everything

<title> A B </title> how to add line breaks between A And B

Labels (2)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@9198459056 

Can you please try this?

<dashboard>
  <label>Title break down</label>
  <row>
    <panel id="panel_id">
      <title>A B C D</title>
      <html>
        <style>
          #panel_id .panel-title { 
            overflow-wrap: break-word;
            width: 3px;
          }
        </style>
      </html>
    </panel>
  </row>
</dashboard>

 

Screenshot 2021-08-05 at 1.32.15 PM.png

KV 

0 Karma

9198459056
Loves-to-Learn Everything

i do not want like break word by word ...it is like if my title is Sum (A+B) then i want ouptput as 

Sum

(A+B)

 

like that I want output and my panel is having single tag and then title 

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@9198459056 

Can you please share more details like your requirement and from how you are fetching A and B into title? Sample XML will be appreciated.

 

 

0 Karma

9198459056
Loves-to-Learn Everything

<panel><sinlgle><title> Sum(A+B)</title></single><search><query>query to fetch data</query></search></panel>

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@9198459056 

Then I think increasing OR decreasing width would help you.

<dashboard>
  <label>Title break down</label>
  <row>
    <panel id="panel_id">
      <title>Sum (A+B)</title>
      <html>
        <style>
          #panel_id .panel-title { 
            overflow-wrap: break-word;
            width: 40px;
          }
        </style>
      </html>
    </panel>
  </row>
</dashboard>

 

 

0 Karma

9198459056
Loves-to-Learn Everything

here we did some stying to make the text alignment in right

0 Karma

9198459056
Loves-to-Learn Everything

Not working for me

 

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...