Dashboards & Visualizations

How to display panel side by side instead of the default?

lsy9891
Engager

Hi
I have a pie chart and a table that I want to display side by side and now in different rows. I edited the XML to be in the same row tag but it doesn't work?
Here's my code.

<dashboard theme="dark">
  <label>SWAT</label>
  <row>
    <panel>
      <title>Orders</title>
      <chart>
        <title>Total Errors per Channel</title>
        <search base="BaseSearch">
          <query> chart sum("#Errors") AS TotalError  BY Channel</query>
        </search>
        <option name="charting.chart">pie</option>
        <option name="charting.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </chart>
      <table>
        <title>Error type per channel</title>
        <search id="BaseSearch">
          <query>earliest=-1d@d latest=@d index=appguids host=netweba* ApplicationID=order20 ApplicationSource=*order* errorguid Monster.PaymentProcessor.PaymentFailedException | rex field=Message "(?m)^Message:[^:]+:\s(?&lt;type&gt;.*)$" | stats count BY type,ChannelID | lookup local=1 MonsterChannels ChannelId AS ChannelID | eval Channel=if(isnull(Channel) OR match(Channel,"^0$"),"Unknown ChannelID", Channel) . " [ChannelID: " . ChannelID . "]" | stats values(type) AS "Error Type", list(count) AS "#Errors" BY Channel | appendpipe [ stats sum("#Errors") AS "#Errors" BY Channel | eval "Error Type"="Total for Channel" ] | stats values(Channel) AS X, list("Error Type") AS "Error Type", list("#Errors") AS "#Errors" BY Channel | fields - X</query>
          <earliest>-60m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row></dashboard>
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi lsy9891,
if i correctly understood, you want to move a panel from a row to another where there is another panel, correct?
if this is your need, if you edit your dashboard, in the UI interface you can move a panel using your mouse.
Anyway, in your dashboard I see that is missing the panel tag between Chart and Table, in other words:

<dashboard theme="dark">
   <label>SWAT</label>
   <row>
     <panel>
       <title>Orders</title>
       <chart>
         <title>Total Errors per Channel</title>
         <search base="BaseSearch">
           <query> chart sum("#Errors") AS TotalError  BY Channel</query>
         </search>
         <option name="charting.chart">pie</option>
         <option name="charting.drilldown">none</option>
         <option name="refresh.display">progressbar</option>
       </chart>
    </panel>
    <panel>
       <table>
         <title>Error type per channel</title>
         <search id="BaseSearch">
           <query>earliest=-1d@d latest=@d index=appguids host=netweba* ApplicationID=order20 ApplicationSource=*order* errorguid Monster.PaymentProcessor.PaymentFailedException | rex field=Message "(?m)^Message:[^:]+:\s(?<type>.*)$" | stats count BY type,ChannelID | lookup local=1 MonsterChannels ChannelId AS ChannelID | eval Channel=if(isnull(Channel) OR match(Channel,"^0$"),"Unknown ChannelID", Channel) . " [ChannelID: " . ChannelID . "]" | stats values(type) AS "Error Type", list(count) AS "#Errors" BY Channel | appendpipe [ stats sum("#Errors") AS "#Errors" BY Channel | eval "Error Type"="Total for Channel" ] | stats values(Channel) AS X, list("Error Type") AS "Error Type", list("#Errors") AS "#Errors" BY Channel | fields - X</query>
           <earliest>-60m</earliest>
           <latest>now</latest>
         </search>
         <option name="drilldown">none</option>
       </table>
     </panel>
   </row></dashboard>

Bye.
Giuseppe

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...