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!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

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

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...