Splunk Search

Making all pie charts in a row in same vertical

smanojkumar
Contributor

Hi Splunkers!

   How to assign the pie chart in same vertical if we are having dropdown in one specific pie chart.

Having dropdown in one pie chart because of that other pie chart in same row got misaligned, need to have same height of pie charts in the row

 

smanojkumar_0-1696943994774.png

Thanks in Advance!

0 Karma

_JP
Contributor

You can fudge it by editing the XML and creating your own row with empty panel tags.  You will get a warning icon in the edit mode, but it saves and displays fine.  For example:

 

 

 

  <row>
    <panel>
    </panel>
    <panel>
      <input type="dropdown" token="field1" searchWhenChanged="true">
        <label>Component</label>
        <choice value="*">All</choice>
        <default>*</default>
        <fieldForLabel>component</fieldForLabel>
        <fieldForValue>component</fieldForValue>
        <search>
          <query>index=_internal | dedup component | table component | sort component</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
      </input>
    </panel>
    <panel>
    </panel>
    <panel>
    </panel>
  </row>

 

 

 

Here's a mock-up I did:

 

pie_chart_align.png

 

See the attached XML pdf to see the full SimpleXML for my mockup.

bowesmana
SplunkTrust
SplunkTrust

You can avoid the empty panel warnings by just adding a dummy html panel, i.e.

<panel>
  <html/>
</panel>

 

_JP
Contributor

The real pro-tip is always in the comments. 😂

0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...