<?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: Label Stacking? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582043#M63506</link>
    <description>&lt;P&gt;It's not completely obvious but it's there.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="labelExpression.png" style="width: 712px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124646iC7A50F7F765401EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="labelExpression.png" alt="labelExpression.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var words = Split($feature["YourFieldNameHere"], " ")
return Concatenate(words, TextFormatting.NewLine)&lt;/LI-CODE&gt;&lt;P&gt;Starter for ten, insert your field name and adjust to suit.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 22:33:37 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2025-02-04T22:33:37Z</dc:date>
    <item>
      <title>Label Stacking?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582019#M63505</link>
      <description>&lt;P&gt;Is there an AGOL equivalent to the Label Stacking options provided in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;Or is there a way to achieve this using Arcade, since AGOL does accept Label Expressions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Label Stacking.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124642i6BFFE3C1A8C4C882/image-size/small?v=v2&amp;amp;px=200" role="button" title="Label Stacking.png" alt="Label Stacking.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 22:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582019#M63505</guid>
      <dc:creator>JoseLGonzalez</dc:creator>
      <dc:date>2025-02-04T22:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Label Stacking?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582043#M63506</link>
      <description>&lt;P&gt;It's not completely obvious but it's there.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="labelExpression.png" style="width: 712px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124646iC7A50F7F765401EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="labelExpression.png" alt="labelExpression.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var words = Split($feature["YourFieldNameHere"], " ")
return Concatenate(words, TextFormatting.NewLine)&lt;/LI-CODE&gt;&lt;P&gt;Starter for ten, insert your field name and adjust to suit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 22:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582043#M63506</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2025-02-04T22:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Label Stacking?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582251#M63516</link>
      <description>&lt;P&gt;Here's a script that splits lines at a set character length (maxLength)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var maxlength = 15;

var myArray = split($feature["YourFieldNameHere"], " ");
var string;
var lineArray = [];
var lineLength = 0;

for (var k in myArray) {
  if (count(myArray[k]) &amp;lt;= maxlength) {
    if (lineLength &amp;lt;= maxlength) {
      Push(lineArray, trim(myArray[k]))
      lineLength += count(trim(myArray[k]) + (count(lineArray) - 1))
      if (lineLength &amp;gt; maxlength) {
        string += Concatenate(lineArray, " ") + TextFormatting.NewLine;
        lineArray = [];
        lineLength = 0;
      }
    }
  } else {
    if (lineLength &amp;gt; 0) {
      string += Concatenate(lineArray, " ") +
      TextFormatting.NewLine +
      trim(myArray[k]) +
      TextFormatting.NewLine;
      lineLength = 0;
      lineArray = []
    } else {
      string += trim(myArray[k]) + TextFormatting.NewLine;
    }
  }
}
if (lineLength &amp;gt; 0) string += Concatenate(lineArray, " ");
return string;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 15:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582251#M63516</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-02-05T15:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Label Stacking?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582317#M63521</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;! This is exactly what I was hoping for.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 16:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/label-stacking/m-p/1582317#M63521</guid>
      <dc:creator>JoseLGonzalez</dc:creator>
      <dc:date>2025-02-05T16:42:52Z</dc:date>
    </item>
  </channel>
</rss>

