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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...