11.DSV 分隔符分隔值文件

318 阅读2分钟

Delimiter-Separated Values (d3-dsv)

Parse and format delimiter-separated values, most commonly CSV and TSV. 解析和格式化分隔符分隔文件,常用的是csv和tsv

  • d3.csvParse - parse the given CSV string, returning an array of objects.解析一个csv字符串,返回一个对象数组
  • d3.csvParseRows - parse the given CSV string, returning an array of rows.解析一个csv字符串,返回行数组
  • d3.csvFormat - format the given array of objects as CSV.将给定的对象数组转换为csv
  • d3.csvFormatBody - format the given array of objects as CSV.将给定的对象数组转换为csv
  • d3.csvFormatRows - format the given array of rows as CSV.将给定的行数组转换为csv
  • d3.csvFormatRow - format the given row as CSV.将指定的行转换为csv
  • d3.csvFormatValue - format the given value as CSV.将指定的值转化为csv
  • d3.tsvParse - parse the given TSV string, returning an array of objects.解析一个tsv字符串,返回一个对象数组
  • d3.tsvParseRows - parse the given TSV string, returning an array of rows.解析一个tsv字符串,返回行数组
  • d3.tsvFormat - format the given array of objects as TSV.将给定的对象数组转换为tsv
  • d3.tsvFormatBody - format the given array of objects as TSV.将给定的对象数组转换为tsv
  • d3.tsvFormatRows - format the given array of rows as TSV.将给定的行数组转换为tsv
  • d3.tsvFormatRow - format the given row as TSV.将指定的行转换为csv
  • d3.tsvFormatValue - format the given value as TSV.将指定的值转化为csv
  • d3.dsvFormat - create a new parser and formatter for the given delimiter.根据一个指定定界符,创建一个新的解析器/格式转换器
  • dsv.parse - parse the given string, returning an array of objects.
  • 解析指定字符串,返回对象数组
  • dsv.parseRows - parse the given string, returning an array of rows. 解析指定字符串,返回行数组
  • dsv.format - format the given array of objects.格式化给定的对象数组
  • dsv.formatBody - format the given array of objects.格式化给定的对象数组
  • dsv.formatRows - format the given array of rows.格式化给定的对象行
  • dsv.formatRow - format the given row.格式化给定的行
  • dsv.formatValue - format the given value.格式化给定的值
  • d3.autoType - automatically infer value types for the given object.自动推断给定值得类型