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
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...