25-7.symbols 符号

173 阅读1分钟

Symbols

A categorical shape encoding, as in a scatterplot.散点图分类形状编码,如在散点图中

  • d3.symbol - create a new symbol generator.创建一个新的符号生成器。
  • symbol - generate a symbol for the given datum.为给定基准生成一个符号。
  • symbol.type - set the symbol type.设置符号类型。
  • symbol.size - set the size of the symbol in square pixels.以正方形像素为单位设置符号的大小。
  • symbol.context - set the rendering context.设置渲染上下文。
  • d3.symbols - the array of built-in symbol types.内置符号类型的数组
  • d3.symbolCircle - a circle.一个圆圈。
  • d3.symbolCross - a Greek cross with arms of equal length.双臂等长的希腊十字架。
  • d3.symbolDiamond - a rhombus.菱形。
  • d3.symbolSquare - a square.正方形。
  • d3.symbolStar - a pentagonal star (pentagram).五边形的星(五角星)。
  • d3.symbolTriangle - an up-pointing triangle.一个向上的三角形。
  • d3.symbolWye - a Y shape.一个不规则的形状。
  • d3.pointRadial - relative coordinates of a point given an angle and radius.给定角度和半径的点的相对坐标。
  • symbolType.draw - draw this symbol to the given context.将此符号绘制到给定的上下文中。