<?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 Split Pie Chart by greater than/ less than in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/split-pie-chart-by-greater-than-less-than/m-p/1654451#M11484</link>
    <description>&lt;P&gt;I want to make a pie chart for the sizes of culverts in my county. Instead of having one slice per number, is there a way to group the numbers into two groups: &amp;gt;60 and &amp;lt;60?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasGoodridge_0-1759322787369.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141183i925957734EDD8860/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasGoodridge_0-1759322787369.png" alt="ThomasGoodridge_0-1759322787369.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 12:50:27 GMT</pubDate>
    <dc:creator>ThomasGoodridge</dc:creator>
    <dc:date>2025-10-01T12:50:27Z</dc:date>
    <item>
      <title>Split Pie Chart by greater than/ less than</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/split-pie-chart-by-greater-than-less-than/m-p/1654451#M11484</link>
      <description>&lt;P&gt;I want to make a pie chart for the sizes of culverts in my county. Instead of having one slice per number, is there a way to group the numbers into two groups: &amp;gt;60 and &amp;lt;60?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasGoodridge_0-1759322787369.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141183i925957734EDD8860/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasGoodridge_0-1759322787369.png" alt="ThomasGoodridge_0-1759322787369.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 12:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/split-pie-chart-by-greater-than-less-than/m-p/1654451#M11484</guid>
      <dc:creator>ThomasGoodridge</dc:creator>
      <dc:date>2025-10-01T12:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Split Pie Chart by greater than/ less than</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/split-pie-chart-by-greater-than-less-than/m-p/1654480#M11489</link>
      <description>&lt;P&gt;I think you made need to do a new data expression to categorize your culvert size. Something like this should get you started:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var portal = Portal('https://www.arcgis.com');
var feature_layer = FeatureSetByPortalItem(portal, 'xxxxxxxxxxxxxxxxxxxxx', x, ['CulvertSize']);


var Cultvert_Rankings = [];


for (var f in feature_layer) {

    var category = When(
        f.CulvertSize &amp;lt; 60, "&amp;lt;60",
         "&amp;gt;60"
    );

    var Cultvert_Ranking = {
        attributes: {
            CulvertSize: f.CulvertSize,
            CulvertRanking: category
        }
    };
    

    Push(Cultvert_Rankings, Cultvert_Ranking);
}

var out_dict = {
    fields: [
        { name: "CulvertSize", type: "esriFieldTypeInteger" },
        { name: "CulvertRanking", type: "esriFieldTypeString" }
    ],
    geometryType: "",
    features: Cultvert_Rankings
};


return FeatureSet(Text(out_dict));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 14:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/split-pie-chart-by-greater-than-less-than/m-p/1654480#M11489</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-10-01T14:09:42Z</dc:date>
    </item>
  </channel>
</rss>

