Dashboards & Visualizations

how to freeze 1st column

avikc100
Path Finder

this is my splunk query:

avikc100_2-1709065250711.png

 


this is output:

avikc100_0-1709065118463.png


how can I freeze this 1st column where interface names are showing.
problem is when dragging to right then can not see the interface name

avikc100_1-1709065178383.png

below is source code:

avikc100_0-1709065558757.png

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @avikc100,

for my knowledge it isn't possible to block a column using the scroll bars as on Excel.

Ciao.

Giuseppe

View solution in original post

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@avikc100  - You can add custom CSS to your simple XML dashboard to achieve this.

 

Dashboard XML Source Code

 

<form>
  <label>Fixed Column Sticky</label>
  <row depends="$tkn_never_show$">
    <panel>
      <html>
        <style>
          #myTable table td:nth-child(1) {
              position: fixed !important;
          }
          #myTable table th:nth-child(1) {
              position: fixed !important;
          }
        </style>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <table id="myTable">
        <search>
....

 

 

If position: fixed doesn't work, you can try with position: sticky;

 

I hope this helps!! If it does kindly upvote!!!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @avikc100,

for my knowledge it isn't possible to block a column using the scroll bars as on Excel.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...