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!

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

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...