<?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 Classification field in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169206#M15682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My GenerateRendererTask generates a renderer and lists the class break in a legend div. The numbers in the class breaks are unformatted. Is there a way to programmatically format these numbers e.g. instead of 8.808848 - 17.767013, I should see 8.81 - 17.77?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Arcgis Server 10.1 with Javascript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2012 18:47:00 GMT</pubDate>
    <dc:creator>SamirGambhir</dc:creator>
    <dc:date>2012-12-27T18:47:00Z</dc:date>
    <item>
      <title>Classification field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169206#M15682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My GenerateRendererTask generates a renderer and lists the class break in a legend div. The numbers in the class breaks are unformatted. Is there a way to programmatically format these numbers e.g. instead of 8.808848 - 17.767013, I should see 8.81 - 17.77?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Arcgis Server 10.1 with Javascript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 18:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169206#M15682</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2012-12-27T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Classification field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169207#M15683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;My GenerateRendererTask generates a renderer and lists the class break in a legend div. The numbers in the class breaks are unformatted. Is there a way to programmatically format these numbers e.g. instead of 8.808848 - 17.767013, I should see 8.81 - 17.77?&lt;BR /&gt;I am using Arcgis Server 10.1 with Javascript API.&lt;BR /&gt;Thanks&lt;BR /&gt;Samir&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have you tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dojo.number.format(value, {places:2});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 18:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169207#M15683</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-12-27T18:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Classification field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169208#M15684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;have you tried&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dojo.number.format(value, {places:2});&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure where to put this function. Please look at the example in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/73166-Legend-dijit-issue"&gt;this&lt;/A&gt;&lt;SPAN&gt; post and suggest where can I add this function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 19:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169208#M15684</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2012-12-27T19:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Classification field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169209#M15685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;my guess is just prior to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stateFeatureLayer.setRenderer(renderer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you will have to evaluate and modify the renderer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from classbreaksrenderer API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var symbols = dojo.map(results[0].layer.renderer.infos,function(info){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return&amp;nbsp; {label: info.label,symbol:info.symbol};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;seems to indicate that you could override the label with a rounded value&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 16:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169209#M15685</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-12-28T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Classification field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169210#M15686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;my guess is just prior to &lt;BR /&gt;stateFeatureLayer.setRenderer(renderer);&lt;BR /&gt;&lt;BR /&gt;you will have to evaluate and modify the renderer&lt;BR /&gt;&lt;BR /&gt;from classbreaksrenderer API&lt;BR /&gt;var symbols = dojo.map(results[0].layer.renderer.infos,function(info){&lt;BR /&gt;&amp;nbsp; return&amp;nbsp; {label: info.label,symbol:info.symbol};&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;seems to indicate that you could override the label with a rounded value&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Jeff, for your help. It worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169210#M15686</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-01-02T17:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Classification field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169211#M15687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;awesome happy to help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/classification-field/m-p/169211#M15687</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2013-01-02T17:31:59Z</dc:date>
    </item>
  </channel>
</rss>

