Dashboards & Visualizations

Help me to align panel title center

paullt12345
Explorer

Hi All

I need to align panel title in center, Please help me to achieve the same.

Thanks.

0 Karma
1 Solution

vnravikumar
Champion

Hi

Try this using CSS.

<dashboard>
  <row depends="$hide$">
    <panel>
      <html>
      <style>
        #test h2 {
        text-align: center !important;
        }
      </style>
    </html>
    </panel>
  </row>
  <row>
    <panel id="test">
      <title>Sample Panel Title</title>
      <table>
        <search>
          <query>index="_internal" |stats count by host</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>

View solution in original post

vnravikumar
Champion

Hi

Try this using CSS.

<dashboard>
  <row depends="$hide$">
    <panel>
      <html>
      <style>
        #test h2 {
        text-align: center !important;
        }
      </style>
    </html>
    </panel>
  </row>
  <row>
    <panel id="test">
      <title>Sample Panel Title</title>
      <table>
        <search>
          <query>index="_internal" |stats count by host</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>
Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...