All Apps and Add-ons

horizontal scroll bar in column chart

Path Finder

My column chart currently looms like this, alt text to make this more readable format i have to increase width and need to enable horizontal scrollbar, tried the below CSS still it is not working.`#manager_chart .dashboard-element chart{

          width: 110% !important;
          overflow: scroll;
          overflow-x: visible !important;
          overflow-y: scroll


Thanks in advance.

0 Karma


@vinothn, showing too much of information with scroll bar may not be the right approach. You may want to try combination of these approaches based on my previous answers:
1. Hide/Show Series Labels which is/are required (provided there are fixed no. of series and sequence:
2. Rotate Data Labels Vertically:
3. Reconsider your Dashboard requirements , like use of Y-Axis Log Scale to separate data points based on variances or show only enough information with Labels that users can consume, otherwise dynamic Tooltips are better for specifics. May be other approach.

Having said above, try the following CSS Style override where chart id is manager_chart. The CSS Style override doubles the width of the chart 200% and adds x-axis scroll bar.

          #manager_chart div.viz-panel{
            width: 200% !important;
          #manager_chart div.facets-container{
            overflow-x:scroll !important;
            overflow-y:hidden !important;

alt text

Following is a run anywhere example for screenshot attached:

  <label>Chart with Horizontal Scroll</label>
          #manager_chart div.viz-panel{
            width: 200% !important;
          #manager_chart div.facets-container{
            overflow-x:scroll !important;
            overflow-y:hidden !important;
      <chart id="manager_chart">
        <title>Column Chart with Vertical Scroll</title>
          <query>index=_internal sourcetype=splunkd
| timechart count by component where max in top5 useother=f</query>
        <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
        <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
        <option name="charting.axisTitleX.visibility">visible</option>
        <option name="charting.axisTitleY.visibility">visible</option>
        <option name="charting.axisTitleY2.visibility">visible</option>
        <option name="charting.axisX.abbreviation">none</option>
        <option name="charting.axisX.scale">linear</option>
        <option name="charting.axisY.abbreviation">none</option>
        <option name="charting.axisY.scale">log</option>
        <option name="charting.axisY2.abbreviation">none</option>
        <option name="charting.axisY2.enabled">0</option>
        <option name="charting.axisY2.scale">inherit</option>
        <option name="charting.chart">column</option>
        <option name="charting.chart.bubbleMaximumSize">50</option>
        <option name="charting.chart.bubbleMinimumSize">10</option>
        <option name="charting.chart.bubbleSizeBy">area</option>
        <option name="charting.chart.nullValueMode">gaps</option>
        <option name="charting.chart.showDataLabels">all</option>
        <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
        <option name="charting.chart.stackMode">default</option>
        <option name="">shiny</option>
        <option name="charting.drilldown">none</option>
        <option name="charting.layout.splitSeries">0</option>
        <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
        <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
        <option name="charting.legend.mode">standard</option>
        <option name="charting.legend.placement">right</option>
        <option name="charting.lineWidth">2</option>
        <option name="trellis.enabled">0</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
| makeresults | eval message= "Happy Splunking!!!"

Path Finder

@niketn , this worked well for me. Thank you!

Path Finder

@niketn , i realized that the width:200% that we set is fixed and does not change when number of bars in chart is less. Which means lesser the # of bars, bigger is the width of each bar in chart.

Would it be possible to remove scroll if # of bars are less?

0 Karma


@vinothn please confirm if your issue above is resolved or not.

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

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...