<?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: Gantt Chart in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311546#M8162</link>
    <description>&lt;P&gt;You are the best, Esri should start paying you lol. I hope I can buy you a beer one day. Cheers!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 15:11:23 GMT</pubDate>
    <dc:creator>C_McNamara</dc:creator>
    <dc:date>2023-07-25T15:11:23Z</dc:date>
    <item>
      <title>Gantt Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1310961#M8148</link>
      <description>&lt;P&gt;Has anyone had any success trying to replicate a gantt chart inside the Esri environment? I am working on a few dashboards to track development activity in a U.S. county and am looking to show the relationship between specific date ranges that reflect key milestones during the stages of development. There doesn't seem to be much flexibility on the dashboard side of things to create a chart like this but wondering if anyone has any ideas to build something the looks like a project management-type date/calendar chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 12:39:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1310961#M8148</guid>
      <dc:creator>C_McNamara</dc:creator>
      <dc:date>2023-07-24T12:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Gantt Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311023#M8149</link>
      <description>&lt;P&gt;I love a good Dashboard challenge, and I was actually thinking about this very topic recently.&lt;/P&gt;&lt;P&gt;As usual, it's &lt;EM&gt;sort of possible&lt;/EM&gt;, but it's not ideal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1690211516878.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76107iDD63AA4C7B692C0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1690211516878.png" alt="jcarlson_0-1690211516878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What you're &lt;EM&gt;really &lt;/EM&gt;seeing there is a 'grouped features' chart split by a field, and one of the series is set to the same color as the chart background.&lt;/P&gt;&lt;P&gt;For each phase of your project, you'd need an attribute corresponding to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Its sequence in the chart (optionally add a domain to the field so that 1 == 'Name of the First Phase', etc).&lt;/LI&gt;&lt;LI&gt;The start date of the item&lt;/LI&gt;&lt;LI&gt;The duration&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Using a &lt;STRONG&gt;Data Expression&lt;/STRONG&gt;, you can then iterate over your features and for any sequence &amp;gt; 1, add a "filler" item with the start date equal to the minimum date of your chart and a duration equal to the difference between that start date and the actual item's start date.&lt;/P&gt;&lt;P&gt;Unfortunately, there's not an easy way to get the value axis to show dates.&lt;/P&gt;&lt;P&gt;Not perfect, but it could work in a pinch.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 15:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311023#M8149</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-07-24T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Gantt Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311538#M8160</link>
      <description>&lt;P&gt;Oh, very interesting! Working on this now... I have another one for ya. I am making a new FeatureSet to calculate the Date Difference (DateDiff) but my table produces no records. Any idea what I'm doing wrong?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;// Write an expression that returns a FeatureSet.
// Documentation: https://arcg.is/3c419TD
// Samples: https://arcg.is/38SEWWz

var sets = [
FeatureSetByPortalItem(Portal('https://www.arcgis.com/'),'813d2b59e4684462a03eaa945fabc471',3,['*'],true)
]
var combinedDict = { 
  'fields': [ 
    {name: "APNO", type:"esriFieldTypeString" },
    {name: "APPROJKEY", type: "esriFieldTypeDouble" },
    {name: "REL_APNO", type: "esriFieldTypeString" },
    {name: "REL_APPROJKEY", type: "esriFieldTypeDouble" },
    {name: "REL_APDESC", type: "esriFieldTypeString" },
    {name: "REL_ACCEPTDATE", type: "esriFieldTypeDate" },
    {name: "REL_PBDATE", type: "esriFieldTypeDate" },
    {name: "TIMEDIFF", type: "esriFieldTypeDouble" },

  ], 
  geometryType: "", 
  features: [],
};

for (var set in sets) {
    for (var feat in sets[set]) {
        Push(
            combinedDict['features'],
            {attributes: {
                APNO: feat["APNO"],
                APPROJKEY: feat["APPROJKEY"],
                REL_APNO: feat["REL_APNO"],
                REL_APPROJKEY: Number(feat["REL_APPROJKEY"]),
                REL_APDESC: feat["REL_APDESC"],
                REL_ACCEPTDATE: feat["REL_ACCEPTDATE"],
                REL_PBDATE: feat["REL_PBDATE"],
                TIMEDIFF: DateDiff(feat["REL_PBDATE"], feat["REL_ACCEPTDATE"], "days"),
                
                 
                
            }}
        )
    }
}

return FeatureSet(Text(combinedDict))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311538#M8160</guid>
      <dc:creator>C_McNamara</dc:creator>
      <dc:date>2023-07-25T15:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Gantt Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311540#M8161</link>
      <description>&lt;P&gt;Oh, I know why! Dates in FeatureSets have to be wrapped in &lt;STRONG&gt;Number(your_date)&lt;/STRONG&gt; otherwise the feature gets dropped.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311540#M8161</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-07-25T15:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Gantt Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311546#M8162</link>
      <description>&lt;P&gt;You are the best, Esri should start paying you lol. I hope I can buy you a beer one day. Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/gantt-chart/m-p/1311546#M8162</guid>
      <dc:creator>C_McNamara</dc:creator>
      <dc:date>2023-07-25T15:11:23Z</dc:date>
    </item>
  </channel>
</rss>

