Dashboards & Visualizations

Splunk Dashboard Studio Tex automatic wrapped

molla
Explorer

Hi, 

We just upgrade Splunk to version 9.4.2 and in the dahabord we noticed that all the text are wrappedbefore the sting was cutted and ... were at the end.

Do you know how to revert this auto wrapping?

 

Thank you

Labels (3)
0 Karma

asimit
Path Finder

Hi @molla 

This text wrapping change is indeed a behavior change in Splunk Dashboard Studio in version 9.4.2. It's part of Splunk's ongoing improvements to make dashboards more responsive and readable across different screen sizes, but I understand it may not be what you're looking for in your specific dashboards.

To revert to the previous behavior where text is cut off with ellipses rather than wrapped, you have a few options:

## For Text Visualization Elements:

1. Use CSS to override the wrapping behavior:
   a. Click on the text element in Dashboard Studio
   b. Go to the Style tab
   c. Click on "Advanced" at the bottom
   d. Add the following CSS:
      ```
      .wrapped-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      ```
   e. Apply the custom CSS class to your text element

2. Set a fixed width for the text container:
   a. Select the containing element (panel or section)
   b. Set a specific width (rather than responsive/percentage-based)
   c. This will cause text to behave more predictably

## For Table Elements:

1. Modify cell behavior:
   a. Select your table visualization
   b. Click on the "Format" tab
   c. Find the specific column you want to modify
   d. Click "Cell" settings
   e. Under "Text Overflow", select "Clip" or "Ellipsis" instead of "Wrap"

2. Apply custom CSS to table cells:
   a. Select the table
   b. Go to the Style tab
   c. Click on "Advanced" 
   d. Add the following CSS:
      ```
      td.splunk-table-cell {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }
      ```

## For Single Value Visualizations:

1. Adjust truncation settings:
   a. Select the single value visualization
   b. Go to the Format tab
   c. Find the "Truncate" option
   d. Set it to "End" and specify the desired character limit

If these methods don't work for your specific dashboard elements, you may need to provide more details about which specific visualization types are showing the unwanted wrapping behavior.

Note that this is a UI/rendering change in 9.4.2, so there's no global setting to revert all text handling to the previous version's behavior. Each element needs to be adjusted individually.

Please give 👍 for support 😁 happly splunking .... 😎

richgalloway
SplunkTrust
SplunkTrust

Which dashboard?  Is it custom or Splunk-provided?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...