Dashboards & Visualizations

How to get chart and table on same row in dashboard html

RVDowning
Contributor

In the following, I removed the div ending the first row, and rmoved the div starting the second row, but the chart and its inline table still appear on different lines. Any clue what I am doing wrong?

<div class="dashboard-row dashboard-row1">
    <div class="dashboard-cell" style="width: 50%;">
        <div class="dashboard-panel clearfix">                
            <div class="panel-element-row">
                <div class="dashboard-element chart" id="element1" style="width: 25%">
                    <div class="panel-head">
                        <h3>Datasets Created by Type</h3>
                    </div>
                    <div class="panel-body"></div>
                </div>
                <div class="dashboard-element table" id="element2" style="width: 25%">
                    <div class="panel-head">
                        <h3>Chart for &#34;$type_tok$&#34;</h3>
                    </div>
                    <div class="panel-body"></div>
                </div>
            </div>
        </div>
    </div>
</div>
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try like this

<div class="dashboard-row dashboard-row1">
    <div class="dashboard-cell" style="width: 50%;">
        <div class="dashboard-panel clearfix">                
            <div class="panel-element-row">
                <div class="dashboard-element chart" id="element1" style="width: 100%">
                    <div class="panel-head">
                        <h3>Datasets Created by Type</h3>
                    </div>
                    <div class="panel-body"></div>
                </div>            
            </div>
        </div>
    </div>
    <div class="dashboard-cell" style="width: 50%;">
        <div class="dashboard-panel clearfix">                
            <div class="panel-element-row">    
                <div class="dashboard-element table" id="element2" style="width: 100%">
                    <div class="panel-head">
                        <h3>Chart for &#34;$type_tok$&#34;</h3>
                    </div>
                    <div class="panel-body"></div>
                </div>
            </div>
        </div>
    </div>
</div>

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Try like this

<div class="dashboard-row dashboard-row1">
    <div class="dashboard-cell" style="width: 50%;">
        <div class="dashboard-panel clearfix">                
            <div class="panel-element-row">
                <div class="dashboard-element chart" id="element1" style="width: 100%">
                    <div class="panel-head">
                        <h3>Datasets Created by Type</h3>
                    </div>
                    <div class="panel-body"></div>
                </div>            
            </div>
        </div>
    </div>
    <div class="dashboard-cell" style="width: 50%;">
        <div class="dashboard-panel clearfix">                
            <div class="panel-element-row">    
                <div class="dashboard-element table" id="element2" style="width: 100%">
                    <div class="panel-head">
                        <h3>Chart for &#34;$type_tok$&#34;</h3>
                    </div>
                    <div class="panel-body"></div>
                </div>
            </div>
        </div>
    </div>
</div>

RVDowning
Contributor

Yep, that did it. Thanks!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...