Dashboards & Visualizations

Bring vertical scroll bar on a specific dashboard panel

architkhanna
Path Finder

I am trying to add a vertical scroll bar for a panel in my dashboard.

Added this code to one of my panel in dashboard.

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

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

vnravikumar
Champion

Hi

Try with id like below

<dashboard>
  <label>test</label>
  <row>
    <html>
       <style >
          #panel2 .panel-element-row {
          overflow: auto;
          max-height: 200px;
        }
        </style>
    </html>
  </row>
  <row>
    <panel id="panel1">

      <chart>
        <search>
          <query>index=_internal|timechart span=1d count by source</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">line</option>
        <option name="charting.drilldown">none</option>
      </chart>
    </panel>
  </row>
  <row>
    <panel id="panel2">
      <chart>
        <search>
          <query>index=_internal|timechart span=1d count by source</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">area</option>
        <option name="charting.drilldown">none</option>
      </chart>
    </panel>
  </row>
</dashboard>
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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