<?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 SingleValue for Ration: Best Option for Coloring in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-for-Ration-Best-Option-for-Coloring/m-p/300375#M19078</link>
    <description>&lt;P&gt;I'm working on a dashboard for metrics and one of the metrics is a ratio; I would like to color the ration red, yellow, or green based on percentage values.&lt;/P&gt;

&lt;P&gt;The "easy" solution is just to display a percentage and we can easily use the interface to set threshold values for the colors.  I would really like to display a ration, however.&lt;/P&gt;

&lt;P&gt;If I use a ratio, I can calculate the percent, use rangemap to set the follow, and then classField to se the color.  The problem with this approach is classField is set as deprecated.  I would assume if it has been deprecated, they have thought through the use cases and have a way to display one field (the ratio) but use another (the percentage) for coloring, but I haven't figured it out yet.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 19:42:42 GMT</pubDate>
    <dc:creator>triest</dc:creator>
    <dc:date>2017-07-10T19:42:42Z</dc:date>
    <item>
      <title>SingleValue for Ration: Best Option for Coloring</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-for-Ration-Best-Option-for-Coloring/m-p/300375#M19078</link>
      <description>&lt;P&gt;I'm working on a dashboard for metrics and one of the metrics is a ratio; I would like to color the ration red, yellow, or green based on percentage values.&lt;/P&gt;

&lt;P&gt;The "easy" solution is just to display a percentage and we can easily use the interface to set threshold values for the colors.  I would really like to display a ration, however.&lt;/P&gt;

&lt;P&gt;If I use a ratio, I can calculate the percent, use rangemap to set the follow, and then classField to se the color.  The problem with this approach is classField is set as deprecated.  I would assume if it has been deprecated, they have thought through the use cases and have a way to display one field (the ratio) but use another (the percentage) for coloring, but I haven't figured it out yet.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-for-Ration-Best-Option-for-Coloring/m-p/300375#M19078</guid>
      <dc:creator>triest</dc:creator>
      <dc:date>2017-07-10T19:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: SingleValue for Ration: Best Option for Coloring</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-for-Ration-Best-Option-for-Coloring/m-p/300376#M19079</link>
      <description>&lt;P&gt;try adding this eval (though you may need to swap the signs/order) to the end of your query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval range=case(percentage&amp;gt;xx,"severe",percentage&amp;gt;xx,"elevated",percentage&amp;gt;xx,"low")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;these colors relate to those values.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Migration_for_rangemap_settings_in_existing_single_value_visualizations"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Migration_for_rangemap_settings_in_existing_single_value_visualizations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and add &lt;CODE&gt;&amp;lt;option name="field"&amp;gt;ratio&amp;lt;/option&amp;gt;&lt;/CODE&gt; to your options&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 20:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-for-Ration-Best-Option-for-Coloring/m-p/300376#M19079</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-10T20:43:08Z</dc:date>
    </item>
  </channel>
</rss>

