<?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: Add a histogram to dashboard in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007179#M4078</link>
    <description>&lt;P&gt;Hello Josh,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for getting back with my post.&amp;nbsp; I was afraid that was the answer, I did not think it would be possible either, but thought I would reach out to the community.&amp;nbsp; I think your work around might be a good option.&amp;nbsp; It is however in an enterprise geodatabase where new features will be added, maybe not daily but certainly annually.&amp;nbsp; Could the same logic you provided by applied to this situation or is there something different when working with data in an enterprise geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, thank you for the data visualization tip! that will come in handy later down the road.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Dec 2020 19:35:32 GMT</pubDate>
    <dc:creator>adam_gallaher</dc:creator>
    <dc:date>2020-12-05T19:35:32Z</dc:date>
    <item>
      <title>Add a histogram to dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007057#M4075</link>
      <description>&lt;P&gt;I am looking to set up a histogram type serial chart in a dashboard using data from one field which comes in as integers ranging from 0 to 45.&amp;nbsp; For example, 5 records might read like the table below.&amp;nbsp; What I am looking to do is count the values in this field grouped by a range, say 0-10; 11-20; 21-30; 31-40; 41 and above. So my final results would look something like this, 0-10 = 1; 11-20 = 2; 21-30 =1; 31-40 = 1; and 41 and up = 0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible to do in a dashboard?&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="25.12550977303813%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50.06257822277848%"&gt;field one&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50.06257822277848%" height="25px"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50.06257822277848%" height="25px"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50.06257822277848%" height="25px"&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50.06257822277848%" height="25px"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50.06257822277848%" height="25px"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all your help in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 19:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007057#M4075</guid>
      <dc:creator>adam_gallaher</dc:creator>
      <dc:date>2020-12-04T19:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add a histogram to dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007175#M4076</link>
      <description>&lt;P&gt;Unfortunately, a dashboard can only group features in a chart by an attribute, as opposed to a range of values. This means your bar chart would have one bar for all the 12s, one for all the 13s, and so on, which is not what you want.&lt;/P&gt;&lt;P&gt;If you already know the bin size you want, an easy workaround is to create a new field, let's call it &lt;STRONG&gt;field_one_binned, &lt;/STRONG&gt;and it will be a &lt;EM&gt;string&lt;/EM&gt; field.&lt;/P&gt;&lt;P&gt;Using the &lt;STRONG&gt;field calculator&lt;/STRONG&gt;, a simple &lt;STRONG&gt;when&lt;/STRONG&gt; statement can populate the field. Note that I'm using &lt;EM&gt;Arcade&lt;/EM&gt; here, but it would be very similar to use an SQL &lt;STRONG&gt;CASE&lt;/STRONG&gt; to do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var n = $feature.field1;

When( n &amp;gt;= 0 &amp;amp;&amp;amp; n &amp;lt;= 10, '0-10', n &amp;gt; 10 &amp;amp;&amp;amp; n &amp;lt;= 20, '11-20' ... )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so on. This hard-codes the histogram "bin" as an attribute, so it's not as dynamic as a histogram chart in something like Insights, Pro, or other non-Esri software, but a quick field calculation could easily re-assign bins.&lt;/P&gt;&lt;P&gt;This does pose a problem if you have a live layer that is updated with new features. If it were in an enterprise geodatabase, an &lt;STRONG&gt;attribute&lt;/STRONG&gt;&lt;STRONG&gt; rule&lt;/STRONG&gt; could handle the binning calculation, otherwise it would have to be some recurring script.&lt;/P&gt;&lt;P&gt;PS - If the stats are more important the geographic context, you might want to look into some of the incredible python libraries out there for interactive data viz. Personally, I would suggest &lt;A href="https://docs.bokeh.org/en/latest/index.html" target="_self"&gt;Bokeh&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 19:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007175#M4076</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2020-12-05T19:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add a histogram to dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007179#M4078</link>
      <description>&lt;P&gt;Hello Josh,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for getting back with my post.&amp;nbsp; I was afraid that was the answer, I did not think it would be possible either, but thought I would reach out to the community.&amp;nbsp; I think your work around might be a good option.&amp;nbsp; It is however in an enterprise geodatabase where new features will be added, maybe not daily but certainly annually.&amp;nbsp; Could the same logic you provided by applied to this situation or is there something different when working with data in an enterprise geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, thank you for the data visualization tip! that will come in handy later down the road.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 19:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007179#M4078</guid>
      <dc:creator>adam_gallaher</dc:creator>
      <dc:date>2020-12-05T19:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add a histogram to dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007192#M4079</link>
      <description>&lt;P&gt;It is actually easier for you with the data in an enterprise geodatabase. Take a look at &lt;A href="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/calculation-attribute-rules.htm#GUID-4E18C976-36C0-433C-884D-034A6353910B" target="_self"&gt;calculation attribute rules&lt;/A&gt; to see how to set it up, but the "bins" field you create would be able to be updated automatically.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 03:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/add-a-histogram-to-dashboard/m-p/1007192#M4079</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2020-12-06T03:08:20Z</dc:date>
    </item>
  </channel>
</rss>

