javascript - Custom formatting in viz Charts SAPUI5 -


i building sample map following explored example bar chart. works fine in project except custom formatting. in sample, customerformat.js used file custom label formatting on value/category axis , works fine there. when try implement same in project, formatting functions in file never called. returns default value associated function[there no issue path file found , loaded in console].

i trying call formatting function follows:

ovizframe.setvizproperties({                 valueaxis: {                     title: {                         visible: false                     },                     label:{                         formatstring: customerformat.fiori_label_shortformat_10                                              }                 }             }); 

it make call without error instead of formatting value returns hard coded string assigned function id enter image description here

i not sure what's going wrong. tried putting debugger inside formatting function not stop @ debug point.

appreciate help

found issue @ last.

we need register our custom format function first calling function "registercustomformat" in customerformat.js file. silly mistake!!!