<?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 number issue in JSON chart tooltip/balloontext in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/number-issue-in-json-chart-tooltip-balloontext/m-p/1005276#M4094</link>
    <description>&lt;P&gt;Can any one help to answer two questions? 1) how to configure the number format for value in tooltip? 2) is there a way to convert value on the fly without change its self in data?&lt;/P&gt;&lt;P&gt;I am using JSON chart in Hub.I tested code using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://esri.github.io/cedar/" target="_blank" rel="nofollow noopener"&gt;https://esri.github.io/cedar/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the value of outStatisticFieldName "MAX_MAX_De_sum" from the query, I want to make sure&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;its display format to be "#,###.00" in tooltip.&lt;/LI&gt;&lt;LI&gt;do convert and show new calculated value of "MAX_MAX_De_sum/60".&lt;BR /&gt;I tried the alternative way as suggested by someone here by applying "Cast(MAX_MAX_De as decimal(10,2)) to the "onStatisticField". it works if when using "orderByFields": "FIRST_Str", but always return unknown error (also shows "MAX_MAX_De_sum " is not valid parameter) when using "orderByFields": "MAX_MAX_De_sum DESC"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;really appreciated for your help&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"type": "bar-horizontal",&lt;BR /&gt;"numberFormatter":[{&lt;BR /&gt;"numberFormat":{"decimalSeparator":".", "thousandsSeparator":",", "precision":-1}&lt;/P&gt;&lt;P&gt;}],&lt;BR /&gt;"datasets": [&lt;BR /&gt;{&lt;BR /&gt;"name": "dataset1",&lt;BR /&gt;"query": {&lt;BR /&gt;"where": "FIRST_Stre &amp;lt;&amp;gt;' ' and FIRST_Stre &amp;lt;&amp;gt; 'Hwy 7'",&lt;BR /&gt;"orderByFields": "MAX_MAX_De_sum DESC",&lt;BR /&gt;"groupByFieldsForStatistics": "FIRST_Stre",&lt;BR /&gt;"having": "SUM(MAX_MAX_De)&amp;gt;24",&lt;BR /&gt;"outStatistics": [&lt;BR /&gt;{&lt;BR /&gt;"statisticType": "sum",&lt;BR /&gt;"onStatisticField": "MAX_MAX_De",&lt;BR /&gt;"outStatisticFieldName": "MAX_MAX_De_sum"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"url": "&lt;A href="https://services.arcgis.com/6iGx1Dq91oKtcE7x/arcgis/rest/services/UUID_Delay_Summary_Hourly_pub_view1/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/6iGx1Dq91oKtcE7x/arcgis/rest/services/UUID_Delay_Summary_Hourly_pub_view1/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"series": [&lt;BR /&gt;{&lt;BR /&gt;"source": "dataset1",&lt;BR /&gt;"category": {&lt;BR /&gt;"field": "FIRST_Stre",&lt;BR /&gt;"label": "Highway"&lt;BR /&gt;},&lt;BR /&gt;"value": {&lt;BR /&gt;"field": "cast(MAX_MAX_De_sum as decimal(10,2))",&lt;BR /&gt;"label": "Delay (in sec)"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"style": {&lt;BR /&gt;"colors": [&lt;BR /&gt;"#026873"&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"overrides": {&lt;BR /&gt;"graphs": [{&lt;BR /&gt;"valueField" : "MAX_MAX_De_sum",&lt;BR /&gt;"balloonText": "[[MAX_MAX_De_sum]]",&lt;BR /&gt;"numberFormatter":{"decimalSeparator":".", "thousandsSeparator":",", "precision":2,"numberFormat": "#,###.00"}&lt;/P&gt;&lt;P&gt;}],&lt;BR /&gt;"valueAxes": [{&lt;BR /&gt;"title": "Elevation (feets)",&lt;BR /&gt;"numberFormatter": {&lt;BR /&gt;"numberFormat": "#,###.00"&lt;BR /&gt;}&lt;BR /&gt;}],&lt;BR /&gt;"xAxes":[{&lt;BR /&gt;"numberFormatter": {&lt;BR /&gt;"numberFormat": "#,###.00"&lt;BR /&gt;}&lt;BR /&gt;}]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Nov 2020 03:19:35 GMT</pubDate>
    <dc:creator>NiuZheng</dc:creator>
    <dc:date>2020-11-28T03:19:35Z</dc:date>
    <item>
      <title>number issue in JSON chart tooltip/balloontext</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/number-issue-in-json-chart-tooltip-balloontext/m-p/1005276#M4094</link>
      <description>&lt;P&gt;Can any one help to answer two questions? 1) how to configure the number format for value in tooltip? 2) is there a way to convert value on the fly without change its self in data?&lt;/P&gt;&lt;P&gt;I am using JSON chart in Hub.I tested code using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://esri.github.io/cedar/" target="_blank" rel="nofollow noopener"&gt;https://esri.github.io/cedar/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the value of outStatisticFieldName "MAX_MAX_De_sum" from the query, I want to make sure&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;its display format to be "#,###.00" in tooltip.&lt;/LI&gt;&lt;LI&gt;do convert and show new calculated value of "MAX_MAX_De_sum/60".&lt;BR /&gt;I tried the alternative way as suggested by someone here by applying "Cast(MAX_MAX_De as decimal(10,2)) to the "onStatisticField". it works if when using "orderByFields": "FIRST_Str", but always return unknown error (also shows "MAX_MAX_De_sum " is not valid parameter) when using "orderByFields": "MAX_MAX_De_sum DESC"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;really appreciated for your help&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"type": "bar-horizontal",&lt;BR /&gt;"numberFormatter":[{&lt;BR /&gt;"numberFormat":{"decimalSeparator":".", "thousandsSeparator":",", "precision":-1}&lt;/P&gt;&lt;P&gt;}],&lt;BR /&gt;"datasets": [&lt;BR /&gt;{&lt;BR /&gt;"name": "dataset1",&lt;BR /&gt;"query": {&lt;BR /&gt;"where": "FIRST_Stre &amp;lt;&amp;gt;' ' and FIRST_Stre &amp;lt;&amp;gt; 'Hwy 7'",&lt;BR /&gt;"orderByFields": "MAX_MAX_De_sum DESC",&lt;BR /&gt;"groupByFieldsForStatistics": "FIRST_Stre",&lt;BR /&gt;"having": "SUM(MAX_MAX_De)&amp;gt;24",&lt;BR /&gt;"outStatistics": [&lt;BR /&gt;{&lt;BR /&gt;"statisticType": "sum",&lt;BR /&gt;"onStatisticField": "MAX_MAX_De",&lt;BR /&gt;"outStatisticFieldName": "MAX_MAX_De_sum"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"url": "&lt;A href="https://services.arcgis.com/6iGx1Dq91oKtcE7x/arcgis/rest/services/UUID_Delay_Summary_Hourly_pub_view1/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/6iGx1Dq91oKtcE7x/arcgis/rest/services/UUID_Delay_Summary_Hourly_pub_view1/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"series": [&lt;BR /&gt;{&lt;BR /&gt;"source": "dataset1",&lt;BR /&gt;"category": {&lt;BR /&gt;"field": "FIRST_Stre",&lt;BR /&gt;"label": "Highway"&lt;BR /&gt;},&lt;BR /&gt;"value": {&lt;BR /&gt;"field": "cast(MAX_MAX_De_sum as decimal(10,2))",&lt;BR /&gt;"label": "Delay (in sec)"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"style": {&lt;BR /&gt;"colors": [&lt;BR /&gt;"#026873"&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"overrides": {&lt;BR /&gt;"graphs": [{&lt;BR /&gt;"valueField" : "MAX_MAX_De_sum",&lt;BR /&gt;"balloonText": "[[MAX_MAX_De_sum]]",&lt;BR /&gt;"numberFormatter":{"decimalSeparator":".", "thousandsSeparator":",", "precision":2,"numberFormat": "#,###.00"}&lt;/P&gt;&lt;P&gt;}],&lt;BR /&gt;"valueAxes": [{&lt;BR /&gt;"title": "Elevation (feets)",&lt;BR /&gt;"numberFormatter": {&lt;BR /&gt;"numberFormat": "#,###.00"&lt;BR /&gt;}&lt;BR /&gt;}],&lt;BR /&gt;"xAxes":[{&lt;BR /&gt;"numberFormatter": {&lt;BR /&gt;"numberFormat": "#,###.00"&lt;BR /&gt;}&lt;BR /&gt;}]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 03:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/number-issue-in-json-chart-tooltip-balloontext/m-p/1005276#M4094</guid>
      <dc:creator>NiuZheng</dc:creator>
      <dc:date>2020-11-28T03:19:35Z</dc:date>
    </item>
  </channel>
</rss>

