Dashboards & Visualizations

How can we give two different styling for two different panel present in a row using <style>

sushreeabatirna
New Member

Hi All,

Below is my dashboard,

I have two panels- want 2 different type of border for each to segregate .how can i do that . I wanted to use id of the element to fetch the particular element . But its not working .

sushreeabatirna_0-1591847098229.png

 

.dashboard-row .dashboard-panel dashboard-element #element4{

border-style: solid;
border-color: #92a8d1;
border-width: thick;
}

Labels (3)
0 Karma

jawahir007
Path Finder

Edit the simple XML code and add an "id" attribute to the <row> element (<row id="p1").

and inside panel specify your CSS style in a <style> tag (<html><style> #id{ your css style here...}</style></html>)

repeat the procedure for the second panel too.

i think this is what you asking for.......

eg:-

<row id="p1">
<panel>
<title>panel1</title>
<single>
<search>
<query>index=_internal|stats count</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
</single>
<html>
<style>
#p1{
border-color: #92a8d1;
border-width: thick;
border-style: solid;
}
</style>
</html>
</panel>
</row>

 

Tags (2)
0 Karma

jawahir007
Path Finder

Edit the simple XML code and add an "id" attribute to the <row> element (<row id="p1").

and inside panel specify your CSS style in a <style> tag (<html><style> #id{ your css style here...}</style></html>)

repeat the procedure for the second panel too.

i think this is what you asking for.......

eg:-

<row id="p1">
<panel>
<title>panel1</title>
<single>
<search>
<query>index=_internal|stats count</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
</single>
<html>
<style>
#p1{
border-color: #92a8d1;
border-width: thick;
border-style: solid;
}
</style>
</html>
</panel>
</row>

 

0 Karma
Get Updates on the Splunk Community!

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 ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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 ...