<?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: How to conditionally format the background colour of an Indicator in Operations Dashboard in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/52002#M300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your comments on this question.&lt;/P&gt;&lt;P&gt;I hope someone has submitted the separate style for value at reference in the ArcGIS Ideas for Ops Dashboard.&lt;/P&gt;&lt;P&gt;What I am trying to do show a different style (color) for a percentage value:&lt;/P&gt;&lt;P&gt;The default color would be if the rate is below 50%; the next color would be for a rate that is at or above 50% but below the rate from a previous time frame; and a final color would be for the rate when it is at or above the rate from the previous time frame.&lt;/P&gt;&lt;P&gt;I have around 250 different areas being tracked, and each areas' rate from the previous time frame are populated in one field. Their range of values are from 55 to 85. I will receive new rate for each area every week day over a four month time period. The rate will grow over the course of this time period. Most will reach the 50% threshold, and some may even pass the area's rate from the previous time frame.&lt;/P&gt;&lt;P&gt;My plan is similar to Nataliya's, but has the caveat that each area will have a different previous rate. Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2020 18:07:31 GMT</pubDate>
    <dc:creator>GregJohnson</dc:creator>
    <dc:date>2020-03-17T18:07:31Z</dc:date>
    <item>
      <title>How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51996#M294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to conditionally format the background colour of an Indicator in Operations Dashboard?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the Indicator to live update and change background colour (like a traffic light system) i.e. over a certain value, the background colour will change to yellow, or below a certain value will change to red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an example of the type of indicators and the traffic light system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Indicator Dashboard Live Background Colour Change" class="image-1 jive-image j-img-original" src="/legacyfs/online/442269_Indicator Dashboard.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 05:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51996#M294</guid>
      <dc:creator>tomhughson</dc:creator>
      <dc:date>2019-04-17T05:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51997#M295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good question. Yes, it is possible to do what you are describing. I suggest you check out the following blog article. It describes how to do this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/provide-context-to-indicators/"&gt;https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/provide-context-to-indicators/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation on Indicators also provides information about conditional formatting.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/operations-dashboard/help/indicator.htm"&gt;https://doc.arcgis.com/en/operations-dashboard/help/indicator.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 17:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51997#M295</guid>
      <dc:creator>DavidNyenhuis1</dc:creator>
      <dc:date>2019-04-22T17:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51998#M296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I was able to add a fixed value reference and conditionally format it so that the background colour changed. However, I am trying to create a threshold for a range of values rather than an individual value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to apply a threshold to each Indicator where below 3 is to be coloured red, between 4 and 5 is to be yellow and between 6 and 8 is to be green. Is there any way I can apply more than one fixed value reference to each Indicator in the dashboard (a range of values)? Or can you only apply one?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 02:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51998#M296</guid>
      <dc:creator>tomhughson</dc:creator>
      <dc:date>2019-04-29T02:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51999#M297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this time the conditional formatting only&amp;nbsp;allows for two styles&amp;nbsp;(1. at/above and 2. below the reference value). I have recorded this enhancement request and use case. Thank you for the details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 18:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/51999#M297</guid>
      <dc:creator>DavidNyenhuis1</dc:creator>
      <dc:date>2019-04-30T18:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/52000#M298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David and Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/219050"&gt;tom hughson&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/124426"&gt;David Nyenhuis&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same issue. I am trying to create an Indicator widget that would show Pollen levels, for ex.: 0-4 (low) Green, 5-49 (moderate) Yellow, 50-89(high) Orange, and 90+(very high) Red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if would be nice if the indicator widget allow for adding an unlimited number of reference values, and conditions. (Just like to can add more filters!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 14:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/52000#M298</guid>
      <dc:creator>NataliyaLys</dc:creator>
      <dc:date>2019-05-17T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/52001#M299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nataliya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;EM&gt;So it would be nice if the indicator widget allow for adding an unlimited number of reference values, and conditions.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please submit an enhancement in the &lt;A _jive_internal="true" data-containerid="1" data-containertype="14" data-objectid="2167" data-objecttype="14" href="https://community.esri.com/community/arcgis-ideas/content?filterID=contentstatus%5Bpublished%5D%7Ecategory%5Boperations-dashboard-for-arcgis%5D"&gt;ArcGIS Ideas for Ops Dashboard site.&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 16:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/52001#M299</guid>
      <dc:creator>DerekLaw</dc:creator>
      <dc:date>2019-12-06T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/52002#M300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your comments on this question.&lt;/P&gt;&lt;P&gt;I hope someone has submitted the separate style for value at reference in the ArcGIS Ideas for Ops Dashboard.&lt;/P&gt;&lt;P&gt;What I am trying to do show a different style (color) for a percentage value:&lt;/P&gt;&lt;P&gt;The default color would be if the rate is below 50%; the next color would be for a rate that is at or above 50% but below the rate from a previous time frame; and a final color would be for the rate when it is at or above the rate from the previous time frame.&lt;/P&gt;&lt;P&gt;I have around 250 different areas being tracked, and each areas' rate from the previous time frame are populated in one field. Their range of values are from 55 to 85. I will receive new rate for each area every week day over a four month time period. The rate will grow over the course of this time period. Most will reach the 50% threshold, and some may even pass the area's rate from the previous time frame.&lt;/P&gt;&lt;P&gt;My plan is similar to Nataliya's, but has the caveat that each area will have a different previous rate. Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 18:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/52002#M300</guid>
      <dc:creator>GregJohnson</dc:creator>
      <dc:date>2020-03-17T18:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/1084465#M4873</link>
      <description>&lt;P&gt;Not sure if you have solved this question yet, but if not I hope this helps.&amp;nbsp; With the integration of arcade to the indicator widget it is possible to create a threshold.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First, I created a variable, "var c" that references my value from the table in which I base my color.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Next is an empty array, "var clr" that will hold the color from the if statement.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Write your if statement and set the array variable equal to the hex color for each logic criteria.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Finally I set the "backgroundColor" as the array variable.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var c = $datapoint.riskValue
var clr = []

if(c &amp;gt;= 0.00001 &amp;amp;&amp;amp; c &amp;lt; 10){
    clr = "#1d8aff"
}else if (c &amp;gt;= 10 &amp;amp;&amp;amp; c &amp;lt; 30){
    clr = "#fff70e"
}else if (c &amp;gt;= 30 &amp;amp;&amp;amp; c &amp;lt; 100){
    clr = "#ff7134"
}else if (c &amp;gt;= 100){
    clr = "#ff0000"
}else {
    clr = "#ebebeb"
}

return {
    //textColor:'',
    backgroundColor: clr,
    topText: 'Tranmission Rate',
    //topTextColor: '',
    //topTextOutlineColor: '',
    topTextMaxSize: 'x-small',
    middleText: $datapoint["riskValue"],
    middleTextColor: '',
    middleTextOutlineColor: '',
    middleTextMaxSize: 'large',
    //bottomText: '',
    //bottomTextColor: '',
    //bottomTextOutlineColor: '',
    //bottomTextMaxSize: 'medium',
    //iconName:'',
    //iconAlign:'left',
    //iconColor:'',
    //iconOutlineColor:'',
    //noValue:false,
    //attributes: {
      // attribute1: '',
      // attribute2: ''
    // }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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="HeathAnderson_0-1627661021489.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19773i3C4C687EEBA1A643/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HeathAnderson_0-1627661021489.png" alt="HeathAnderson_0-1627661021489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;See website for great examples&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/pushing-the-limits-of-arcade-in-dashboards/" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/pushing-the-limits-of-arcade-in-dashboards/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 16:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/1084465#M4873</guid>
      <dc:creator>HeathAnderson</dc:creator>
      <dc:date>2021-07-30T16:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/1295667#M7899</link>
      <description>&lt;P&gt;Awesome tip thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/102264"&gt;@HeathAnderson&lt;/a&gt;&amp;nbsp;! Helped me colours rows in a table depending on value.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2023 22:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/1295667#M7899</guid>
      <dc:creator>ChrisRoberts2</dc:creator>
      <dc:date>2023-06-04T22:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to conditionally format the background colour of an Indicator in Operations Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/1330554#M8489</link>
      <description>&lt;P&gt;Is it possible to apply something similar to filters in dashboards?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-to-conditionally-format-the-background-colour/m-p/1330554#M8489</guid>
      <dc:creator>ILoveMap</dc:creator>
      <dc:date>2023-09-20T12:17:43Z</dc:date>
    </item>
  </channel>
</rss>

