code: function getFormattedValue(value) {
              if (valueFormatter !== null) {
                  return valueFormatter(value);
              }
  
              let chosenValueFormatter = formatDecimalValue;
  
              if (!value) {
                  return 0;
              }
              if (numberFormat !== null) {
                  chosenValueFormatter = d3Format.format(numberFormat);
              } else if (isInteger(value)) {
                  chosenValueFormatter = formatIntegerValue;
              }
  
              return chosenValueFormatter(value);
          }
docs: Formats the value depending on its characteristics
  @param  {Number} value Value to format
  @return {Number}       Formatted value
  @private