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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...