Symptom
You use the API Chart_X.getNumberFormat().setScaleFormat(NumberFormatScaleFormat.Short) to change the number format.
The values of the Legend(Value Range) is not changing as per Scaling.
Environment
SAP Analytics Cloud 1.0
Reproducing the Issue
1. Create Tree Map.
2. Assign Measures to Size, Color, & Tooltip.
3. Create a script using below blog to create Thousand and Million Buttons, which will set the scaling on the Tree Map Chart.
https://blogs.sap.com/2020/06/28/how-to-set-dynamically-scale-for-key-figures-and-also-how-to-change-the-number-formatting-in-sac-analytics-application-designer/
4. Save the Story.
5. While viewing click on Thousand or Million Button, Observe that the Legend(Value Range bar) is not changing as per the scaling we set.
Cause
This is not supported according to the Analytics Designer API Reference Guide :
->
It says "Specifies the scale format of the chart. Number format APIs only apply to measures on axes, Feed.ValueAxis and Feed.ValueAxis2. Tooltip measures Feed.TooltipValueAxis, aren’t supported, for example. "
Resolution
You can raise this as a software enhancement request on SAP Customer Influence Website. There you have the opportunity to discuss it with our product owner directly. If it is accepted, it might be added to a future product release or support package. For detail of "Customer influence" website, refer to the note ##2424376.
Keywords
KBA , LOD-ANA-UNS-DVP , Unified Story Developer Issues , LOD-ANA-AD , Analytics Designer , Problem