code: function formatNum(value, d3format) {
    if (value === undefined || value === null || Number.isNaN(value)) return '';
    return value == parseFloat(value) ? d3.format(d3format)(value) : value;
  }
docs: Format number
  @param {object} value - value
  @param {string} type - si | scientific | rounded | raw