<?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: Labeling in ArcGIS Mapping and Charting Questions</title>
    <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53022#M181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they are integers you can use this to calculate the new text field using the python parser&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14334535961767201" data-renderedposition="50_8_913_16" jivemacro_uid="_14334535961767201"&gt;&lt;P&gt;str(value / 1000) + 'K'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are floats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14334536936654262 jive_text_macro" data-renderedposition="129_8_913_16" jivemacro_uid="_14334536936654262"&gt;&lt;P&gt;str(int(value) / 1000) + 'K'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace 'value' in the above script with '!your_field_name!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 21:34:57 GMT</pubDate>
    <dc:creator>JeffWard</dc:creator>
    <dc:date>2015-06-04T21:34:57Z</dc:date>
    <item>
      <title>Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53018#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new at this, so please bare with me.&amp;nbsp; I was recently asked if I could create a map showing tax parcel color coded in to code classes (ie - &amp;gt; 50,000, 50,000-100,000, etc) and then have the assessment value labeled on each parcel as well.&amp;nbsp; Our assessment values are in represented into the 100 place (ie - ($)120,200, ($)15,800, ($)267,800, etc.), however they have asked if I can that the labels be 120K, 16K, 268K and so forth.&amp;nbsp; (essentially rounding the numbers to the nears 1000.&amp;nbsp; I have found where I can pick how many significant digits should appear, but anything less than 100,000 rounds to the 100 not to the nearest 1000.&amp;nbsp; (ie - $15,800 remains this as opposed to being rounded to 16,000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this something that is possible to achieve with labeling or is it possible by using the field calculator?&amp;nbsp; Thanks your any help you can provide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:20:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53018#M177</guid>
      <dc:creator>LizHousworth</dc:creator>
      <dc:date>2015-06-04T21:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53019#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it both ways.&amp;nbsp; Dynamic labeling with scripts usually comes with a performance hit since it has to do the job with every feature with every pan, zoom etc.&amp;nbsp; If you create a field and calculate it, you would only run the script once and label on that field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53019#M178</guid>
      <dc:creator>JeffWard</dc:creator>
      <dc:date>2015-06-04T21:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53020#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your values text entries or numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53020#M179</guid>
      <dc:creator>JeffWard</dc:creator>
      <dc:date>2015-06-04T21:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53021#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are number values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liz Housworth&lt;/P&gt;&lt;P&gt;GIS/LIS Technician&lt;/P&gt;&lt;P&gt;Land Information Office&lt;/P&gt;&lt;P&gt;220 E State St, Rm 110&lt;/P&gt;&lt;P&gt;Mauston, WI 53948&lt;/P&gt;&lt;P&gt;(608) 847-9457&lt;/P&gt;&lt;P&gt;liojuneau@co.juneau.wi.us&amp;lt;mailto:liojuneau@co.juneau.wi.us&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53021#M180</guid>
      <dc:creator>LizHousworth</dc:creator>
      <dc:date>2015-06-04T21:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53022#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they are integers you can use this to calculate the new text field using the python parser&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14334535961767201" data-renderedposition="50_8_913_16" jivemacro_uid="_14334535961767201"&gt;&lt;P&gt;str(value / 1000) + 'K'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are floats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14334536936654262 jive_text_macro" data-renderedposition="129_8_913_16" jivemacro_uid="_14334536936654262"&gt;&lt;P&gt;str(int(value) / 1000) + 'K'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace 'value' in the above script with '!your_field_name!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53022#M181</guid>
      <dc:creator>JeffWard</dc:creator>
      <dc:date>2015-06-04T21:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53023#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep in mind this doesn't round, it truncates.&amp;nbsp; So 259,900 would show up as 259K instead of 260K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53023#M182</guid>
      <dc:creator>JeffWard</dc:creator>
      <dc:date>2015-06-04T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53024#M183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the field calculator change the parser to python and use the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14334543170443030 jive_macro_code jive_text_macro" data-renderedposition="50_8_912_16" jivemacro_uid="_14334543170443030"&gt;&lt;P&gt;int(round( !A_Value! , -3)) / 1000&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the rounded value in thousands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit - you will need to replace the !A_Value! with your own field name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53024#M183</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-06-04T21:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53025#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dynamic labeling using Python should do it for you. Set the label parser to Python and use an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"{}K".format(int(round([VALFIELD] / 1000.0)))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test this kind of thing at the Python prompt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; "{}K".format(int(round(120800 / 1000.0)))
'121K'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:02:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53025#M184</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T22:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53026#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's much better than mine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 14:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53026#M185</guid>
      <dc:creator>JeffWard</dc:creator>
      <dc:date>2015-06-05T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53027#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that the first formula has an extra closing parenthesis after the field placeholder [VALFIELD] that will result in an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"{}K".format(int(round(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;[VALFIELD]&lt;/SPAN&gt;) / 1000.0)))
Parsing error SyntaxError: invalid syntax (line 1)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the extra closing parenthesis and it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as you are not labelling a crazy number of features I would go for the dynamic labelling as you don't need to update calculated fields as your data changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53027#M186</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2021-12-10T22:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53028#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I caught that and added the extra parenthesis already.  Thanks though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liz Housworth&lt;/P&gt;&lt;P&gt;GIS/LIS Technician&lt;/P&gt;&lt;P&gt;Land Information Office&lt;/P&gt;&lt;P&gt;220 E State St, Rm 110&lt;/P&gt;&lt;P&gt;Mauston, WI 53948&lt;/P&gt;&lt;P&gt;(608) 847-9457&lt;/P&gt;&lt;P&gt;liojuneau@co.juneau.wi.us&amp;lt;mailto:liojuneau@co.juneau.wi.us&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 14:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53028#M187</guid>
      <dc:creator>LizHousworth</dc:creator>
      <dc:date>2015-06-08T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53029#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I fixed my parentheses. Note, the extra one was not at the end but right after [VALFIELD].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2015 03:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/labeling/m-p/53029#M188</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-06-13T03:08:34Z</dc:date>
    </item>
  </channel>
</rss>

