d3-scale
比例尺将抽象数据的维度映射到可视化表示。虽然比例尺最常用于将数据编码为位置,例如将时间和温度映射到散点图中的水平和垂直位置,但它几乎可以表示任何视觉编码,例如颜色、笔触宽度或符号大小。比例尺几乎可以用于任何类型的数据,例如命名的分类数据或需要合理划分的离散数据。
¥Scales map a dimension of abstract data to a visual representation. Although most often used for encoding data as position, say to map time and temperature to a horizontal and vertical position in a scatterplot, scales can represent virtually any visual encoding, such as color, stroke width, or symbol size. Scales can also be used with virtually any type of data, such as named categorical data or discrete data that requires sensible breaks.
请参阅以下之一:
¥See one of:
线性尺度 - 用于定量数据
¥Linear scales - for quantitative data
时间尺度 - 用于时间序列数据
¥Time scales - for time-series data
功率尺度 - 用于定量数据(范围较广)
¥Pow scales - for quantitative data (that has a wide range)
对数尺度 - 用于定量数据(范围较广)
¥Log scales - for quantitative data (that has a wide range)
Symlog 尺度 - 用于定量数据(范围较广)
¥Symlog scales - for quantitative data (that has a wide range)
序数尺度 - 对于分类或序数数据
¥Ordinal scales - for categorical or ordinal data
带尺度 - 对于作为位置编码的分类或序数数据
¥Band scales - for categorical or ordinal data as a position encoding
点尺度 - 对于作为位置编码的分类或序数数据
¥Point scales - for categorical or ordinal data as a position encoding
顺序尺度 - 用于顺序颜色编码的定量数据
¥Sequential scales - for quantitative data as a sequential color encoding
发散尺度 - 用于发散颜色编码的定量数据
¥Diverging scales - for quantitative data as a diverging color encoding
分位数尺度 - 用于离散编码的定量数据
¥Quantile scales - for quantitative data as a discrete encoding
量化尺度 - 用于离散编码的定量数据
¥Quantize scales - for quantitative data as a discrete encoding
阈值尺度 - 用于离散编码的定量数据
¥Threshold scales - for quantitative data as a discrete encoding
有关比例尺编码的可视化,请参阅 d3-axis、scale.ticks 和 scale.tickFormat。有关配色方案,请参阅 d3-scale-chromatic。
¥For visualizing the scale’s encoding, see d3-axis, as well as scale.ticks and scale.tickFormat. For color schemes, see d3-scale-chromatic.