字符串格式化

  • 3.format - format a number as a string.
  • d3.formatPrefix - returns the SI prefix for the specified value and precision.
  • d3.requote - quote a string for use in a regular expression.
  • d3.round - rounds a value to some digits after the decimal point.