<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to change the width of the column in the classic dashboard's panel? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643192#M52525</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for the reply. Sorry, let be a little clearer, my use case is to show only the four columns in the table. The rest of the columns should appear while I scroll rightwards. As of now, the solution provided produces a result similar to the below screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinoth_raj_1-1683892257695.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25363i4BB9810BBDF3DF88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinoth_raj_1-1683892257695.png" alt="vinoth_raj_1-1683892257695.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 11:51:51 GMT</pubDate>
    <dc:creator>vinoth_raj</dc:creator>
    <dc:date>2023-05-12T11:51:51Z</dc:date>
    <item>
      <title>How to change the width of the column in the classic dashboard's panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/642394#M52466</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;My use case is to change the width of the column in the classic dashboard's panel.&lt;BR /&gt;I tried the below configuration in xml. But this method only works for up to four columns. Not working as expected for 13 columns where I want only the first four columns to be viewed without scrolling right.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;      &amp;lt;html depends="$alwaysHideCSSPanel$"&amp;gt;
        &amp;lt;style&amp;gt;
          #tableColumWidth table thead tr th:nth-child(1){
            width: 80% !important;
            overflow-wrap: anywhere !important;
          }          
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;table id="tableColumWidth"&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;I also tried including more '#tableColumWidth table thead tr th:nth-child(n)'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 10:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/642394#M52466</guid>
      <dc:creator>vinoth_raj</dc:creator>
      <dc:date>2023-05-05T10:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the width of the column in the classic dashboard's panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643181#M52523</link>
      <description>&lt;P&gt;Can you try this and see how it works? (Add the&amp;nbsp;&lt;SPAN&gt;CSS code&amp;nbsp;&lt;/SPAN&gt;to the&amp;nbsp;&lt;SPAN&gt;html tag section in the dashboard code&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;html&amp;gt;
    &amp;lt;style&amp;gt;
/* Add the below CSS code*/
#tableColumWidth table {
  table-layout: fixed;
  width: 100%;
}

#tableColumWidth table td, 
#tableColumWidth table th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tableColumWidth table th:nth-child(1),
#tableColumWidth table td:nth-child(1),
#tableColumWidth table th:nth-child(2),
#tableColumWidth table td:nth-child(2),
#tableColumWidth table th:nth-child(3),
#tableColumWidth table td:nth-child(3),
#tableColumWidth table th:nth-child(4),
#tableColumWidth table td:nth-child(4) {
  width: 25%;
}

#tableColumWidth table th:nth-child(n+5),
#tableColumWidth table td:nth-child(n+5) {
  width: 5%;
}
    &amp;lt;/style&amp;gt;
  &amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This sets a fixed width of 25% for the first four columns using the &lt;/SPAN&gt;nth-child&lt;SPAN&gt; selector, and sets a percentage width of 5% for the remaining columns. You can adjust the width percentage to suit your needs.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 10:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643181#M52523</guid>
      <dc:creator>TrangCIC81</dc:creator>
      <dc:date>2023-05-12T10:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the width of the column in the classic dashboard's panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643183#M52524</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250352"&gt;@vinoth_raj&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in the Splunk Dashboard Examples app (&lt;A href="https://splunkbase.splunk.com/app/1603)" target="_blank"&gt;https://splunkbase.splunk.com/app/1603)&lt;/A&gt;&amp;nbsp;there's the solution to your problem using JS and CSS.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 10:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643183#M52524</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-12T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the width of the column in the classic dashboard's panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643192#M52525</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for the reply. Sorry, let be a little clearer, my use case is to show only the four columns in the table. The rest of the columns should appear while I scroll rightwards. As of now, the solution provided produces a result similar to the below screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinoth_raj_1-1683892257695.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25363i4BB9810BBDF3DF88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinoth_raj_1-1683892257695.png" alt="vinoth_raj_1-1683892257695.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 11:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643192#M52525</guid>
      <dc:creator>vinoth_raj</dc:creator>
      <dc:date>2023-05-12T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the width of the column in the classic dashboard's panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643308#M52533</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      #tableColumWidth table th:nth-child(n+5),
      #tableColumWidth table td:nth-child(n+5) {
        display: none;
      }
 
   #tableColumWidth table th:last-child,
      #tableColumWidth table td:last-child {
        overflow-x: auto;
        width: auto !important;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you replace it with the above?&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;This should hide all columns after the fourth column, and set a fixed width of 25% to the first four columns. The last column will have &lt;/SPAN&gt;overflow-x&lt;SPAN&gt; set to &lt;/SPAN&gt;auto&lt;SPAN&gt; to allow horizontal scrolling when necessary, and the &lt;/SPAN&gt;width&lt;SPAN&gt; is set to &lt;/SPAN&gt;auto !important&lt;SPAN&gt; to override the &lt;/SPAN&gt;25%&lt;SPAN&gt; width set earlier. This should allow the first four columns to be visible without scrolling horizontally, and allow the remaining columns to be accessed by scrolling horizontally.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 01:50:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-width-of-the-column-in-the-classic-dashboard-s/m-p/643308#M52533</guid>
      <dc:creator>TrangCIC81</dc:creator>
      <dc:date>2023-05-15T01:50:59Z</dc:date>
    </item>
  </channel>
</rss>

