node_modules/echarts/lib/util/format.js
/**
 * Add a comma each three digit.
 */
Add a comma each three digit.
Add a comma each three digit .
function addCommas(x) {
  if (!isNumeric(x)) {
    return zrUtil.isString(x) ? x : '-';
  }
  var parts = (x + '').split('.');
  return parts[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,') + (parts.length > 1 ? '.' + parts[1] : '');
}
function addCommas ( x ) { if ( ! isNumeric ( x ) ) { return zrUtil . isString ( x ) ? x : '-' ; } var parts = ( x + '' ) . split ( '.' ) ; return parts [ 0 ] . replace ( / (\d{1,3})(?=(?:\d{3})+(?!\d)) / g , '$1,' ) + ( parts . length > 1 ? '.' + parts [ 1 ] : '' ) ; }
Add a comma each three digit.
Add a comma each three digit .