<?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: Using SummaryStatistics for binning data representation. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-summarystatistics-for-binning-data/m-p/1281908#M80942</link>
    <description>&lt;P&gt;You cannot use SummaryStatistics for binning before first creating the bins in a view. The binning implementation is purely client-side, so the bins must first be created before they can be queried for statistics. You can use SummaryStatistics to query a feature layer that hasn't yet been added to a map because the statistics query can be sent to the feature server. Because we don't have a server-side binning solution at the moment, the same cannot be done here.&lt;/P&gt;&lt;P&gt;If you're trying to query stats before bins display, I suggest you create the bins with a transparent symbol first, then issue the query and create the renderer and apply to the feature reduction object. That way you won't see flashing when the app starts up.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 16:28:52 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2023-04-24T16:28:52Z</dc:date>
    <item>
      <title>Using SummaryStatistics for binning data representation.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-summarystatistics-for-binning-data/m-p/1281762#M80939</link>
      <description>&lt;P&gt;Hi to everyone,&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I have a data representation using bins (featureReduction/Type binning).&lt;/P&gt;&lt;P&gt;I would like to be able to use the summary statistics function to obtain the Min and Max values. The idea is to use them as STOPS in my representation.&lt;/P&gt;&lt;P&gt;I have tried the following code:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureLayer =

const featureReduction =

const map = new Map({
    basemap: "gray-vector",
    layers: [featureLayer]
    });

  const view = new MapView({
  container: "viewDiv",
  map: map,
  center: [2.333333,48.866667],
  scale: 144447,
  constraints: {
      snapToZoom: false
  }
  });
const my_stats = summaryStatistics({
    layer: featureLayer,
    view,
    field: "aggregate",
    forBinning: true
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use the SummaryStatistics function before declaring the Map and View (as I have tried but without success)&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 09:43:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-summarystatistics-for-binning-data/m-p/1281762#M80939</guid>
      <dc:creator>GIS_test</dc:creator>
      <dc:date>2023-04-24T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using SummaryStatistics for binning data representation.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-summarystatistics-for-binning-data/m-p/1281908#M80942</link>
      <description>&lt;P&gt;You cannot use SummaryStatistics for binning before first creating the bins in a view. The binning implementation is purely client-side, so the bins must first be created before they can be queried for statistics. You can use SummaryStatistics to query a feature layer that hasn't yet been added to a map because the statistics query can be sent to the feature server. Because we don't have a server-side binning solution at the moment, the same cannot be done here.&lt;/P&gt;&lt;P&gt;If you're trying to query stats before bins display, I suggest you create the bins with a transparent symbol first, then issue the query and create the renderer and apply to the feature reduction object. That way you won't see flashing when the app starts up.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 16:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-summarystatistics-for-binning-data/m-p/1281908#M80942</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2023-04-24T16:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using SummaryStatistics for binning data representation.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-summarystatistics-for-binning-data/m-p/1282203#M80951</link>
      <description>&lt;P&gt;Thank you, it solved my problem well.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;One last point that is still strange, I noticed that once the application is open in certain areas, the values ​​change when zooming in or out. Do you have any idea on how to make the display static and not dynamic ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 06:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-summarystatistics-for-binning-data/m-p/1282203#M80951</guid>
      <dc:creator>GIS_test</dc:creator>
      <dc:date>2023-04-25T06:58:42Z</dc:date>
    </item>
  </channel>
</rss>

