Dashboards & Visualizations

why doesn't splunk respect the HTML/XML width commands?

machstell
New Member

Why does SPLUNK .css default to over-riding manual width statements? I've seen several potential solutions, but this seems contradictive to the whole W3C idea of standard coding. I should not have to boot-strap a bullshit javascript into all my dashboards just to get desired width within a row. BELOW is example - and the two cells are ALWAYS displayed as a 50/50 of the row. SPLUNK should respect standard HTML/XML coding standards and any manual (converted) dashboard should not be overwritten by some default .css -- that just makes zero sense.

    <div id="panel7" class="dashboard-cell" style="width: 10%;">
        <div class="dashboard-panel clearfix">
            <h2 class="panel-title">Latest UV Index</h2>

            <div class="panel-element-row">
                <div id="element7" class="dashboard-element single" style="width: 10%">
                    <div class="panel-body"></div>
                </div>
            </div>
        </div>
    </div>
    <div id="panel9" class="dashboard-cell" style="width: 90%;">
        <div class="dashboard-panel clearfix">
            <h2 class="panel-title">Solar Radiation (8 hrs)</h2>

            <div class="panel-element-row">
                <div id="element9" class="dashboard-element chart" style="width: 90%">
                    <div class="panel-body"></div>
                </div>
            </div>
        </div>
    </div>
</div>
0 Karma

kmaron
Motivator

have you seen this method? It's not exactly what you're referring to but it's closer and better/easier than javascript

https://answers.splunk.com/answers/630436/how-to-change-the-width-of-panels-in-xml.html

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...