Skip to Content
Technical Articles
Author's profile photo Saurabh Suresh Sonawane

How to set dynamically scale for key figures and also how to change the number formatting in SAC Analytics Application Designer

Hi Friends,

Writing the blog to explain how to change or set dynamically scale for key figures and also how to change the dynamic number formatting in SAC Analytics Application Designer.

As there is no document or step provided in SAP DeveloperHandbookSACAnalyticsDesigner

 

Please follow the below step.

Step 1- drag and drop a radio button on the canvas

Step2- hard code the radio button with 3 value by default as shown

 

step 3 We have to write a code on select radio button

 

The above code will change the scaling of the chart dynamic.

we can use the Chart_1.getNumberFormat().setScaleFormat(NumberFormatScaleFormat.Short)

to change the scaling text to short or long text for scaling format

 

to change the number format for a given chart at run time we have to use a below code.

Chart_1.getNumberFormat().setDecimalPlaces(1);

 

Thanks,

SaurabhS.

Assigned tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mukesh Patwa
      Mukesh Patwa

      Hi Saurabh,

       

      Which chart you have used, because this function is not showing to me in  BAR Chart. Please guide me on this.

      Author's profile photo Saurabh Suresh Sonawane
      Saurabh Suresh Sonawane
      Blog Post Author

      Its a bar chart only.

      Can you share a screen shot of the code.

      Thanks,

      Saurabh S.

      Author's profile photo Mukesh Patwa
      Mukesh Patwa

      Pls check below screen shot of Radio Button & Code :-

       

       

      I am getting the function of getNumberFormat.

       

       

       

      Author's profile photo Mukesh Patwa
      Mukesh Patwa

      I guess, You have updated version of SAC Designer, because in RadioButton, I can see few more options like Data Source type Manual Input, Enable the wrtie-back in runtime.

       

      All above features, I can not see in my RadioButton.

      Author's profile photo Saurabh Suresh Sonawane
      Saurabh Suresh Sonawane
      Blog Post Author

      Hi Mukesh,

      currently i am using 2020.13.1 version of SAC.

       

      Author's profile photo Mukesh Patwa
      Mukesh Patwa

       

      My Version :- Version 2020.8

      Author's profile photo Alexander Blasl
      Alexander Blasl

      Hi Saurabh Suresh Sonawane

      is it possible to change Data Label Settings in a Numeric Point Chart via script? It looks that this feature is missing

      BR Alex

      Author's profile photo Saurabh Suresh Sonawane
      Saurabh Suresh Sonawane
      Blog Post Author

      Yes,

      The above mention feature is still missing in the SAC.

      Thanks,

      Saurabh S.