<?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 Add Slices to Hub Pie Chart in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134860#M5003</link>
    <description>&lt;P&gt;I'm creating a pie chart on an ArcGIS Hub page. There are six categories that I want to display in my pie chart, but when I build the chart, three categories are grouped together in an Other category.&lt;/P&gt;&lt;P&gt;Here is the Excel spreadsheet that I've uploaded to AGOL to create the feature layer which feeds the pie chart:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmccord_0-1642557118870.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31771iAD4024B9220A3197/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmccord_0-1642557118870.png" alt="pmccord_0-1642557118870.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;pmccord_0-1642557118870.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, this is how the chart renders when I use Material as my Category and Length as my Value for the pie chart:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmccord_2-1642557242107.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31773i9F083B264AA28B56/image-size/large?v=v2&amp;amp;px=999" role="button" title="pmccord_2-1642557242107.png" alt="pmccord_2-1642557242107.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;pmccord_2-1642557242107.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also tried using the JSON option to specify my chart definition as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{
  "type": "pie",
  "datasets": [
    {
      "name": "dataset1",
      "query": {
        "orderByFields": "Length__miles__sum DESC",
        "groupByFieldsForStatistics": "Material",
        "outStatistics": [
          {
            "statisticType": "sum",
            "onStatisticField": "Length__miles_",
            "outStatisticFieldName": "Length__miles__sum"
          }
        ]
      },
      "url": "URL WOULD BE HERE, BUT I REMOVED"
    }
  ],
  "series": [
    {
      "source": "dataset1",
      "category": {
        "field": "Material",
        "label": "Material"
      },
      "value": {
        "field": "Length__miles__sum",
        "label": "Length (miles)"
      }
    }
  ],
  "style": {
    "padding": {
      "top": 30,
      "bottom": 10
    },
    "pie": {
      "expand": 0
    },
"colors": [
      "#484C70",
      "#93B7BE",
      "#E0CA3C",
      "#A799B7",
      "#048A81",
      "#CD8987"
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I couldn't find any documentation that specified how I might add additional slices to my pie chart. If anyone has experience doing this, I'd greatly appreciate some help. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 02:46:19 GMT</pubDate>
    <dc:creator>pmccord</dc:creator>
    <dc:date>2022-01-19T02:46:19Z</dc:date>
    <item>
      <title>Add Slices to Hub Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134860#M5003</link>
      <description>&lt;P&gt;I'm creating a pie chart on an ArcGIS Hub page. There are six categories that I want to display in my pie chart, but when I build the chart, three categories are grouped together in an Other category.&lt;/P&gt;&lt;P&gt;Here is the Excel spreadsheet that I've uploaded to AGOL to create the feature layer which feeds the pie chart:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmccord_0-1642557118870.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31771iAD4024B9220A3197/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmccord_0-1642557118870.png" alt="pmccord_0-1642557118870.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;pmccord_0-1642557118870.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, this is how the chart renders when I use Material as my Category and Length as my Value for the pie chart:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmccord_2-1642557242107.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31773i9F083B264AA28B56/image-size/large?v=v2&amp;amp;px=999" role="button" title="pmccord_2-1642557242107.png" alt="pmccord_2-1642557242107.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;pmccord_2-1642557242107.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also tried using the JSON option to specify my chart definition as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{
  "type": "pie",
  "datasets": [
    {
      "name": "dataset1",
      "query": {
        "orderByFields": "Length__miles__sum DESC",
        "groupByFieldsForStatistics": "Material",
        "outStatistics": [
          {
            "statisticType": "sum",
            "onStatisticField": "Length__miles_",
            "outStatisticFieldName": "Length__miles__sum"
          }
        ]
      },
      "url": "URL WOULD BE HERE, BUT I REMOVED"
    }
  ],
  "series": [
    {
      "source": "dataset1",
      "category": {
        "field": "Material",
        "label": "Material"
      },
      "value": {
        "field": "Length__miles__sum",
        "label": "Length (miles)"
      }
    }
  ],
  "style": {
    "padding": {
      "top": 30,
      "bottom": 10
    },
    "pie": {
      "expand": 0
    },
"colors": [
      "#484C70",
      "#93B7BE",
      "#E0CA3C",
      "#A799B7",
      "#048A81",
      "#CD8987"
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I couldn't find any documentation that specified how I might add additional slices to my pie chart. If anyone has experience doing this, I'd greatly appreciate some help. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 02:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134860#M5003</guid>
      <dc:creator>pmccord</dc:creator>
      <dc:date>2022-01-19T02:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add Slices to Hub Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134950#M5005</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I asked a colleague for insight on your issue and he said you can add:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;"overrides": {&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;"groupPercent": 2 &amp;lt;--- whatever percentage it is&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"About groupPercent, if&amp;nbsp;&lt;SPAN&gt;there is more than one slice whose percentage of the pie is less than this number, those slices will be grouped together into one slice. This is the "other" slice. It will always be the last slice in a pie."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At line 49, put a comma after the closing bracket, hit return, then add the overrides object. He says you'll have to figure out the actual percentage you need as it's currently defaulting to 5%.&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134950#M5005</guid>
      <dc:creator>KlaraSchmitt</dc:creator>
      <dc:date>2022-01-19T14:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add Slices to Hub Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134952#M5006</link>
      <description>&lt;P&gt;Thank you Klara! Your solution worked perfectly!&lt;/P&gt;&lt;P&gt;Is there any documentation that you or your colleague can point me to that has some of this information because I wasn't able to find it when I was initially tackling this. There are a few additional things I'm hoping to do to customize my charts... like removing the border that currently exists around the Chart frame (maybe that's not possible, but I'd like to try).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134952#M5006</guid>
      <dc:creator>pmccord</dc:creator>
      <dc:date>2022-01-19T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add Slices to Hub Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134963#M5007</link>
      <description>&lt;P&gt;Admittedly, I'm a little over my head when it comes to chart JSON. I'm not sure we have a lot of formal documentation, but there is a sandbox here:&amp;nbsp;&lt;A href="https://esri.github.io/cedar/," target="_blank"&gt;https://esri.github.io/cedar/,&lt;/A&gt;&amp;nbsp;which links you to the cedar library. I don't know if that really covers the type of documentation you need. The underlying charting technology is&amp;nbsp;&lt;A href="https://docs.amcharts.com/3/javascriptcharts," target="_blank"&gt;https://docs.amcharts.com/3/javascriptcharts,&lt;/A&gt;&amp;nbsp;but there will be limitations on what can and cannot be overwritten.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134963#M5007</guid>
      <dc:creator>KlaraSchmitt</dc:creator>
      <dc:date>2022-01-19T15:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add Slices to Hub Pie Chart</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134984#M5008</link>
      <description>&lt;P&gt;No problem. Thanks for the additional resources and for the solution!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:43:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/add-slices-to-hub-pie-chart/m-p/1134984#M5008</guid>
      <dc:creator>pmccord</dc:creator>
      <dc:date>2022-01-19T15:43:38Z</dc:date>
    </item>
  </channel>
</rss>

