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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...