<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Single value with trellis have to show color based on field value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/550412#M38011</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheFlash_0-1620136372147.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14034iFF9EB6A1594F9AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheFlash_0-1620136372147.png" alt="TheFlash_0-1620136372147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you want this right ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right mouse click on screen then click on inspect and and then check for the html tag where your value is, as you can see in below image there is a "id" in the div tag which is unique to my single value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheFlash_1-1620136734941.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14035i11219BC854A88727/image-size/large?v=v2&amp;amp;px=999" role="button" title="TheFlash_1-1620136734941.png" alt="TheFlash_1-1620136734941.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and you can also see my id="singlevalue" which is the child of div tag which have id="facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_service", you will also see something similar for your panel. Since id is unique, I can use this to change the background color. Then create a .css file(for e.g. color.css) in $SPLUNK_HOME/etc/apps/&amp;lt;your-app-name&amp;gt;/appserver/static. And in that CSS file write the following code:&lt;/P&gt;&lt;P&gt;1. if you want background like red one, then write:&amp;nbsp;&lt;/P&gt;&lt;P&gt;#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_access{&lt;BR /&gt;background:red;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;(here "#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_access" is the id you saw in above image"&lt;/P&gt;&lt;P&gt;2. if you want background like green one, then write:&lt;/P&gt;&lt;P&gt;#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_service&amp;gt;div#singlevalue{&lt;BR /&gt;background:green;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;(here "div#singlevalue" is written to identify the child of "#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_service" )&lt;/P&gt;&lt;P&gt;If this help you, give an upvote&amp;nbsp;&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 14:06:13 GMT</pubDate>
    <dc:creator>TheFlash</dc:creator>
    <dc:date>2021-05-04T14:06:13Z</dc:date>
    <item>
      <title>Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/550370#M38005</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kindly help me with the below scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the diagram my query is&amp;nbsp;index=main |stats count by log_level&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to show the background color for Error is red, Warn is Amber, Info is green. The color shouldn't depend on the values. Whatever the count it does not matter. when the panels should always show red for ERROR Warn is Amber, Info is green&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="999balaji9_0-1620125447044.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14032i7FF1DBFEB040D497/image-size/medium?v=v2&amp;amp;px=400" role="button" title="999balaji9_0-1620125447044.png" alt="999balaji9_0-1620125447044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me on the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 10:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/550370#M38005</guid>
      <dc:creator>999balaji9</dc:creator>
      <dc:date>2021-05-04T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/550412#M38011</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheFlash_0-1620136372147.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14034iFF9EB6A1594F9AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheFlash_0-1620136372147.png" alt="TheFlash_0-1620136372147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you want this right ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right mouse click on screen then click on inspect and and then check for the html tag where your value is, as you can see in below image there is a "id" in the div tag which is unique to my single value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheFlash_1-1620136734941.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14035i11219BC854A88727/image-size/large?v=v2&amp;amp;px=999" role="button" title="TheFlash_1-1620136734941.png" alt="TheFlash_1-1620136734941.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and you can also see my id="singlevalue" which is the child of div tag which have id="facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_service", you will also see something similar for your panel. Since id is unique, I can use this to change the background color. Then create a .css file(for e.g. color.css) in $SPLUNK_HOME/etc/apps/&amp;lt;your-app-name&amp;gt;/appserver/static. And in that CSS file write the following code:&lt;/P&gt;&lt;P&gt;1. if you want background like red one, then write:&amp;nbsp;&lt;/P&gt;&lt;P&gt;#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_access{&lt;BR /&gt;background:red;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;(here "#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_access" is the id you saw in above image"&lt;/P&gt;&lt;P&gt;2. if you want background like green one, then write:&lt;/P&gt;&lt;P&gt;#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_service&amp;gt;div#singlevalue{&lt;BR /&gt;background:green;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;(here "div#singlevalue" is written to identify the child of "#facet-viz_groupby_field_sourcetype_groupby_value_splunk_web_service" )&lt;/P&gt;&lt;P&gt;If this help you, give an upvote&amp;nbsp;&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 14:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/550412#M38011</guid>
      <dc:creator>TheFlash</dc:creator>
      <dc:date>2021-05-04T14:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/550989#M38072</link>
      <description>&lt;P&gt;Hi Flash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. But in my scenario all the 3 single value visualizations in same panel.&amp;nbsp; I hope you understand what I am trying to say. if not please let me know will explain clearly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Reddy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 09:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/550989#M38072</guid>
      <dc:creator>999balaji9</dc:creator>
      <dc:date>2021-05-09T09:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/551006#M38073</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234099"&gt;@999balaji9&lt;/a&gt;&amp;nbsp; You can do it using format-&amp;gt;Color option.. refer below screenshot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjeev543_1-1620579413657.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14094i0E18B8B6B8D77947/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjeev543_1-1620579413657.png" alt="sanjeev543_1-1620579413657.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 16:58:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/551006#M38073</guid>
      <dc:creator>sanjeev543</dc:creator>
      <dc:date>2021-05-09T16:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/551037#M38075</link>
      <description>&lt;P&gt;Hi Sajeev,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply I don't want to be based on the value I am aware of that color option. but I need based on the Error, Info, Warn based on this I required the color. I hope you understand.&amp;nbsp; If not please check the below screenshot. if it is the error I need red if it is the info I need Green if it is the warn need amber.&amp;nbsp; Hope this will clear my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="999balaji9_0-1620629201120.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14097i29A7008235F47888/image-size/medium?v=v2&amp;amp;px=400" role="button" title="999balaji9_0-1620629201120.png" alt="999balaji9_0-1620629201120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Balaji Reddy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 06:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/551037#M38075</guid>
      <dc:creator>999balaji9</dc:creator>
      <dc:date>2021-05-10T06:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/551260#M38107</link>
      <description>&lt;P&gt;I have used trellis, and my search query was index=_internal | stats count by sourcetype&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the basis of that I have changed the background color as you can see in above reply.&lt;/P&gt;&lt;P&gt;you want to change the Background color as I have show right ?&lt;/P&gt;&lt;P&gt;if not then edit your screenshot in paint or any other s/w and tell what exactly you want and also mention the xml code ,&amp;nbsp; using some example which I can also perform and understand your situation better.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/551260#M38107</guid>
      <dc:creator>TheFlash</dc:creator>
      <dc:date>2021-05-11T16:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/743609#M58534</link>
      <description>&lt;P&gt;Hi Thanks, this looks will work, But how this will apply specific to this dashboard and also is there any way easily use CSS from UI itself without doing changes in the backend?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 11:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/743609#M58534</guid>
      <dc:creator>sekarjegan93</dc:creator>
      <dc:date>2025-04-06T11:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Single value with trellis have to show color based on field value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/743610#M58535</link>
      <description>&lt;P&gt;CSS can be added to the source of a simpleXML / classic dashboard (not Dashboard Studio). This is a very old post - you should start your own question which more specific information about your particular usecase so we can give you more targeted and relevant information.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 11:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-with-trellis-have-to-show-color-based-on-field/m-p/743610#M58535</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-04-06T11:17:01Z</dc:date>
    </item>
  </channel>
</rss>

