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
Revered Legend

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
Revered Legend

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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...