<?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: Statistics Query result as label in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/statistics-query-result-as-label/m-p/1568026#M86249</link>
    <description>&lt;P&gt;Try something like this inside the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Style the label
      var labelClass = {
        symbol: {
          type: "text", // autocasts as new TextSymbol()
          color:[254, 252, 203], 
          haloColor: "Black",
          haloSize: 2,
          lineWidth:55,
          font: {
            // autocast as new Font()
            family: "Avenir Next LT Pro Medium",
            size: 8,
            weight: "bold"
          }
        },
        labelExpressionInfo: {
          expression: feature.attributes
        },
        labelPlacement: "always-horizontal",
        //minScale: 7500
      };
      tLayer.labelingInfo = [labelClass];
      tLayer.refresh()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 19:01:28 GMT</pubDate>
    <dc:creator>MatthewDriscoll</dc:creator>
    <dc:date>2024-12-12T19:01:28Z</dc:date>
    <item>
      <title>Statistics Query result as label</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/statistics-query-result-as-label/m-p/1566613#M86217</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have created a client side count&amp;nbsp; statistic query&amp;nbsp; , that is working fine. How I can place the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"outStatisticFieldName" as label of the layer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query = tLayer.createQuery();
query.groupByFieldsForStatistics = ["FLATS"];
query.outStatistics = [sumFlats];

tLayer.queryFeatures(query)
      .then(function (response) {
      response.features.forEach((feature) =&amp;gt; {
      console.log(feature.attributes);
      });
tLayer.refresh();
}); &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 08:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/statistics-query-result-as-label/m-p/1566613#M86217</guid>
      <dc:creator>cadgism</dc:creator>
      <dc:date>2024-12-10T08:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics Query result as label</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/statistics-query-result-as-label/m-p/1568026#M86249</link>
      <description>&lt;P&gt;Try something like this inside the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Style the label
      var labelClass = {
        symbol: {
          type: "text", // autocasts as new TextSymbol()
          color:[254, 252, 203], 
          haloColor: "Black",
          haloSize: 2,
          lineWidth:55,
          font: {
            // autocast as new Font()
            family: "Avenir Next LT Pro Medium",
            size: 8,
            weight: "bold"
          }
        },
        labelExpressionInfo: {
          expression: feature.attributes
        },
        labelPlacement: "always-horizontal",
        //minScale: 7500
      };
      tLayer.labelingInfo = [labelClass];
      tLayer.refresh()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 19:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/statistics-query-result-as-label/m-p/1568026#M86249</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2024-12-12T19:01:28Z</dc:date>
    </item>
  </channel>
</rss>

