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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...