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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...