Dashboards & Visualizations

Is it possible to center single values trellis in a panel?

splunksumman
Explorer

Hi community,

Is it possible to center single values trellis in a panel?

alt text

Thanks you.

Labels (2)
0 Karma
1 Solution

vnravikumar
Champion

Hi @splunksumman

Try this and let me know

<dashboard>
  <label>single</label>
  <row>
    <panel>
      <html>
      <style>
        #test .facets-container{
        display: flex !important;
        justify-content: center !important;
        }
      </style>
    </html>
      <single id="test">
        <search>
          <query>index="_internal" |stats count by source | top limit=5 source</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="colorMode">block</option>
        <option name="drilldown">none</option>
        <option name="rangeColors">["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]</option>
        <option name="trellis.enabled">1</option>
        <option name="useColors">1</option>
      </single>
    </panel>
  </row>
</dashboard>

View solution in original post

splunksumman
Explorer

Hi vnravikumar,

Excellent, thank you very much for your support.

alt text

vnravikumar
Champion

Hi @splunksumman

Try this and let me know

<dashboard>
  <label>single</label>
  <row>
    <panel>
      <html>
      <style>
        #test .facets-container{
        display: flex !important;
        justify-content: center !important;
        }
      </style>
    </html>
      <single id="test">
        <search>
          <query>index="_internal" |stats count by source | top limit=5 source</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="colorMode">block</option>
        <option name="drilldown">none</option>
        <option name="rangeColors">["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]</option>
        <option name="trellis.enabled">1</option>
        <option name="useColors">1</option>
      </single>
    </panel>
  </row>
</dashboard>

Software-Simian
Path Finder

Hi,

this works like a peach if you do not have multiple lines in the trellis. If i sue this all charts are forced in one line and i get a scrollbar. Is it possible to leave the "line breaks" and still center?

 

Kind regards,

Mike

0 Karma

YuliyaVassilyev
Explorer

That works, thank you! I have one panel where i centered trellis and then i have drilldown that shows more trellis values that are also centered. Can i make it so that second panel is not automatically centered?

Because the second panel is centered i cannot see some of the values...

0 Karma
Get Updates on the Splunk Community!

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 ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...