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!

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

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

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

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...