Chart number formatting

I wonder if it’s possible somehow to format numbers on charts? For tooltips, labels and/or axis values.

For example, tooltip “11254315” is not very useful. “11 254 315” or “11’254’315” is much more informative.

Is it possible to apply webix.i18n.numberFormat or similar functions to these values?

Sure, you can provide any logic to the templates of axis/tooltip/labels.

Template can be set as a function that will return a label depending on some conditions.

  xAxis:{
    template:function(obj){        // obj is the current data item
      // assuming that value is a Number
      return webix.i18n.numberFormat(obj.value) 
    }
  },
  tooltip:function(obj){ /* ... */ }