Forum Discussion

aqavi10's avatar
aqavi10
Advocate I
6 years ago

Round up decimal points in MapBox visual cluster component

 

Can someone please help me in fixing the decimal points in the number shown when we turn the "Cluster" value ON in the Mapbox Visual used below? I've tried the (ROUND-UP) function but it rounds up at certain zoom levels and doesn't when we zoom in or out other-times, as shown below.

 

 

 

 

 

5 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Not 100% on that third-party visual but generally you use the formatting to change the decimal places for a measure or column to 0, 1, or 2 for example.

     

    • aqavi10's avatar
      aqavi10
      Advocate I

      Hi Greg,

       

        I tried that before using the Round-up function but none of them work unfortunately.  Please see the gif for further understanding the issue.

       

       

  • Icey's avatar
    Icey
    Community Support

    Hi aqavi10 ,

     

    As Greg_Deckler said, you can try this:

     

     

    Please let me know if this works.

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • aqavi10's avatar
      aqavi10
      Advocate I

      Hi Icey,

       

        Thanks for the response. Please see my reply in this thread for the issue. The solution doesn't work unfortunately.

      • Icey's avatar
        Icey
        Community Support

        Hi aqavi10 ,

         

        I have tested on my side. It does not work on MapBox Visual. 

        Since this is a custom visual, I suggest you contact a professional by posting a post on Questions tagged [mapbox].

         

         

        Best Regards,

        Icey

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.