<?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: In single-value: CSS by value impossible in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/In-single-value-CSS-by-value-impossible/m-p/378920#M20752</link>
    <description>&lt;P&gt;Hi  niketnilay,&lt;/P&gt;

&lt;P&gt;I successfully adapt your script to use it with strings.&lt;/P&gt;

&lt;P&gt;Thanks for your helps&lt;BR /&gt;
Regards&lt;/P&gt;</description>
    <pubDate>Sun, 10 Jun 2018 14:31:05 GMT</pubDate>
    <dc:creator>secuc2r83</dc:creator>
    <dc:date>2018-06-10T14:31:05Z</dc:date>
    <item>
      <title>In single-value: CSS by value impossible</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/In-single-value-CSS-by-value-impossible/m-p/378918#M20750</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;In a simple XML: i use a single value and i need , with a CSS, to change parameters by value (ex: if test1 =&amp;gt; color=green, backgroung=red....) &lt;BR /&gt;
But impossible to apply css by value (can't use token in single value)&lt;BR /&gt;
I check "Splunk Dashboard Example 6x" but they do it by panel, never by single-value&lt;BR /&gt;
I check parameters in Firefox's dev tools, but all my tests failed&lt;/P&gt;

&lt;P&gt;Ex: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
      &amp;lt;single id="my_single"&amp;gt;
       &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| stats count as value | eval value = 4550 | rangemap field=value test1=0-99 test2=100-999 test3=1000-2999&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="field"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;trend&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorMode"&amp;gt;block&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x65a637","0x6db7c6","0xf7bc38","0xf58f39","0xd93f3c"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendColorInterpretation"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendDisplayMode"&amp;gt;absolute&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Test successfull:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#my_single .single-result {
font-size: 75px !important;
background-color: blue !important;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Tests failed when i try by value:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#my_single .test1.single-result.text {
font-size: 75px !important;
background-color: blue !important;
}

#my_single .single-result.text.test1 {
font-size: 75px !important;
background-color: blue !important;
}

#my_single .single-result.text.value.test1 {
font-size: 75px !important;
background-color: blue !important;
}


#my_single .single-result.text.value-test1 {
font-size: 75px !important;
background-color: blue !important;
}

#my_single .single-result.text-test1 {
font-size: 75px !important;
background-color: blue !important;
}

.test1.single-result-value {
font-size: 75px !important;
background-color: blue !important;
}

#my_single .test1.single-result.text-value {
font-size: 75px !important;
background-color: blue !important;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 07:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/In-single-value-CSS-by-value-impossible/m-p/378918#M20750</guid>
      <dc:creator>secuc2r83</dc:creator>
      <dc:date>2018-06-09T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: In single-value: CSS by value impossible</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/In-single-value-CSS-by-value-impossible/m-p/378919#M20751</link>
      <description>&lt;P&gt;@secuc2r83 when Single Value is Rendered CSS override will not work. You might have to try with Simple XML JS Extension. Please refer to the one of my older answer on Similar lines: &lt;A href="https://answers.splunk.com/answers/583539/can-we-set-two-different-colors-for-single-value-a.html"&gt;https://answers.splunk.com/answers/583539/can-we-set-two-different-colors-for-single-value-a.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Adjust to your needs and if you need further help, let us know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 16:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/In-single-value-CSS-by-value-impossible/m-p/378919#M20751</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-09T16:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: In single-value: CSS by value impossible</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/In-single-value-CSS-by-value-impossible/m-p/378920#M20752</link>
      <description>&lt;P&gt;Hi  niketnilay,&lt;/P&gt;

&lt;P&gt;I successfully adapt your script to use it with strings.&lt;/P&gt;

&lt;P&gt;Thanks for your helps&lt;BR /&gt;
Regards&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/In-single-value-CSS-by-value-impossible/m-p/378920#M20752</guid>
      <dc:creator>secuc2r83</dc:creator>
      <dc:date>2018-06-10T14:31:05Z</dc:date>
    </item>
  </channel>
</rss>

