Dashboards & Visualizations

how to add Vertical Scrollbar for a panel

sravankaripe
Communicator

how can we add custom vertical scrollbar for a panels in a dashboard ?

we have pre-existing horizontal scrollbar
similarly i want vertical scrollbar how can i do it?

0 Karma

architkhanna
Path Finder

This works.However this is bringing scrollbar to all the panels on my dashboard.
Is there a way I can add this scroll to only a specific panel and not all?

0 Karma

rjthibod
Champion

I cannot give you a very specific answer without knowing more about your XML and what kind of panels you use.

For now, here is a generic approach that you can play with.

Add the following to your dashboard SimpleXML just before the closing </form> or </dashboard>. Getting the vertical scrollbar to appear relies on limiting the height of the panel and turning overflow to auto. The following will set the same height limits to all panels. You can change the value of the max-height setting to increase or shrink the panels. If you need to set the limits different for certain panels, then you will have to identify the panels by an ID and reference that ID in the CSS setting.

  <row depends="$dont_show$">
    <panel>
      <html>
        <style>
          .dashboard-row .dashboard-panel .panel-element-row {
            overflow: auto;
            max-height: 200px;
          }
        </style>
      </html>
    </panel>
  </row>

architkhanna
Path Finder

This works.However this is bringing scrollbar to all the panels on my dashboard.
Is there a way I can add this scroll to only a specific panel and not all?

0 Karma

niketn
Legend

What kind of visualization you intend to add Vertical Scroll bar and what is the scenario for the same?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...