API 索引
¥API index
D3 是一个旨在协同工作的模块集合;你可以单独使用这些模块,也可以将它们作为默认构建的一部分一起使用。
¥D3 is a collection of modules that are designed to work together; you can use the modules independently, or you can use them together as part of the default build.
d3-array
数组操作、排序、搜索、汇总等。
¥Array manipulation, ordering, searching, summarizing, etc.
添加
¥Add
添加全精度浮点值。
¥Add floating point values with full precision.
新的 Adder - 创建一个全精度加法器。
¥new Adder - create a full precision adder.
adder.add - 向加法器添加一个值。
¥adder.add - add a value to an adder.
adder.valueOf - 获取加法器值的双精度表示。
¥adder.valueOf - get the double-precision representation of an adder’s value.
fcumsum - 计算数字的全精度累积和。
¥fcumsum - compute a full precision cumulative summation of numbers.
fsum - 计算数字可迭代对象的全精度和。
¥fsum - compute a full precision summation of an iterable of numbers.
分箱
¥Bin
将离散样本分箱到连续、不重叠的区间中。
¥Bin discrete samples into continuous, non-overlapping intervals.
bin - 创建一个新的箱生成器。
¥bin - create a new bin generator.
bin - 对给定的样本数组进行合并。
¥bin - bins a given array of samples.
bin.value - 为每个样本指定一个值访问器。
¥bin.value - specify a value accessor for each sample.
bin.domain - 指定可观察值的间隔。
¥bin.domain - specify the interval of observable values.
bin.thresholds - 指定如何将值划分到各个 bin 中。
¥bin.thresholds - specify how values are divided into bins.
thresholdFreedmanDiaconis - Freedman-Diaconis 分箱规则。
¥thresholdFreedmanDiaconis - the Freedman–Diaconis binning rule.
thresholdScott - Scott 的正态参考分箱规则。
¥thresholdScott - Scott’s normal reference binning rule.
thresholdSturges - Sturges 的分箱公式。
¥thresholdSturges - Sturges’ binning formula.
二等分
快速在已排序数组中查找值。
¥Quickly find a value in a sorted array.
bisector - 使用访问器或比较器进行二分。
¥bisector - bisect using an accessor or comparator.
bisector.right - 使用给定的比较器进行右二分。
¥bisector.right - bisectRight, with the given comparator.
bisector.left - 使用给定的比较器进行左二分。
¥bisector.left - bisectLeft, with the given comparator.
bisector.center - 在已排序数组中二分查找值。
¥bisector.center - binary search for a value in a sorted array.
bisect - 在已排序数组中二分查找值。
¥bisect - binary search for a value in a sorted array.
bisectRight - 在已排序数组中二分查找值。
¥bisectRight - binary search for a value in a sorted array.
bisectLeft - 在已排序数组中二分查找值。
¥bisectLeft - binary search for a value in a sorted array.
bisectCenter - 在已排序数组中二分查找值。
¥bisectCenter - binary search for a value in a sorted array.
模糊
¥Blur
在一维或二维中模糊定量值。
¥Blur quantitative values in one or two dimensions.
d3.blur - 对数字数组进行原地模糊处理。
¥d3.blur - blur an array of numbers in place.
d3.blur2 - 对二维数字数组进行原地模糊处理。
¥d3.blur2 - blur a two-dimensional array of numbers in place.
d3.blurImage - 对 RGBA 图片数据进行原地模糊处理。
¥d3.blurImage - blur an RGBA ImageData in place.
群组
对离散值进行分组。
¥Group discrete values.
d3.group - 将可迭代对象分组为一个嵌套 Map。
¥d3.group - group an iterable into a nested Map.
d3.groups - 将可迭代对象分组为一个嵌套数组。
¥d3.groups - group an iterable into a nested array.
d3.rollup - 将可迭代对象简化为嵌套 Map。
¥d3.rollup - reduce an iterable into a nested Map.
d3.rollups - 将可迭代对象简化为嵌套数组。
¥d3.rollups - reduce an iterable into a nested array.
d3.index - 将可迭代对象索引到嵌套 Map 中。
¥d3.index - index an iterable into a nested Map.
d3.indexes - 将可迭代对象索引到嵌套数组中。
¥d3.indexes - index an iterable into a nested array.
d3.flatGroup - 将可迭代对象分组为一个平面数组。
¥d3.flatGroup - group an iterable into a flat array.
d3.flatRollup - 将可迭代对象简化为平面数组。
¥d3.flatRollup - reduce an iterable into a flat array.
d3.groupSort - 根据分组值对键进行排序。
¥d3.groupSort - sort keys according to grouped values.
实习生
使用非原始值(例如日期)创建映射和集合。
¥Create maps and sets with non-primitive values such as dates.
新的 InternMap - 键值对映射。
¥new InternMap - a key-interning Map.
新的 InternSet - 一个值驻留集合。
¥new InternSet - a value-interning Set.
集合
¥Sets
集合上的逻辑运算。
¥Logical operations on sets.
d3.difference - 计算集合差。
¥d3.difference - compute a set difference.
d3.disjoint - 测试两个集合是否不相交。
¥d3.disjoint - test whether two sets are disjoint.
d3.intersection - 计算集合交。
¥d3.intersection - compute a set intersection.
d3.superset - 测试一个集合是否为另一个集合的超集。
¥d3.superset - test whether a set is a superset of another.
d3.subset - 测试一个集合是否为另一个集合的子集。
¥d3.subset - test whether a set is a subset of another.
d3.union - 计算集合并。
¥d3.union - compute a set union.
排序
¥Sort
对值数组进行排序和重新排序。
¥Sort and reorder arrays of values.
d3.ascending - 计算两个值的自然顺序。
¥d3.ascending - compute the natural order of two values.
d3.descending - 计算两个值的自然顺序。
¥d3.descending - compute the natural order of two values.
d3.permute - 根据索引可迭代对象重新排序一个元素可迭代对象。
¥d3.permute - reorder an iterable of elements according to an iterable of indexes.
d3.quickselect - 重新排序一个数字数组。
¥d3.quickselect - reorder an array of numbers.
d3.reverse - 反转值的顺序。
¥d3.reverse - reverse the order of values.
d3.shuffle - 随机化可迭代对象的顺序。
¥d3.shuffle - randomize the order of an iterable.
d3.shuffler - 随机化可迭代对象的顺序。
¥d3.shuffler - randomize the order of an iterable.
d3.sort - 对值进行排序。
¥d3.sort - sort values.
总结
计算汇总统计数据。
¥Compute summary statistics.
d3.count - 计算可迭代对象中的有效数字值。
¥d3.count - count valid number values in an iterable.
d3.min - 计算可迭代对象的最小值。
¥d3.min - compute the minimum value in an iterable.
d3.minIndex - 计算可迭代对象中最小值的索引。
¥d3.minIndex - compute the index of the minimum value in an iterable.
d3.max - 计算可迭代对象的最大值。
¥d3.max - compute the maximum value in an iterable.
d3.maxIndex - 计算可迭代对象中最大值的索引。
¥d3.maxIndex - compute the index of the maximum value in an iterable.
d3.least - 返回可迭代对象的最小元素。
¥d3.least - returns the least element of an iterable.
d3.leastIndex - 返回可迭代对象中最小元素的索引。
¥d3.leastIndex - returns the index of the least element of an iterable.
d3.greatest - 返回可迭代对象中的最大元素。
¥d3.greatest - returns the greatest element of an iterable.
d3.greatestIndex - 返回可迭代对象中最大元素的索引。
¥d3.greatestIndex - returns the index of the greatest element of an iterable.
d3.extent - 计算可迭代对象的最小值和最大值。
¥d3.extent - compute the minimum and maximum value in an iterable.
d3.mode - 计算数值可迭代对象的众数(最常见的值)。
¥d3.mode - compute the mode (the most common value) of an iterable of numbers.
d3.sum - 计算可迭代对象的和。
¥d3.sum - compute the sum of an iterable of numbers.
d3.mean - 计算可迭代对象的算术平均值。
¥d3.mean - compute the arithmetic mean of an iterable of numbers.
d3.median - 计算数值可迭代对象的中位数(0.5 分位数)。
¥d3.median - compute the median of an iterable of numbers (the 0.5-quantile).
d3.medianIndex - 计算数值可迭代对象的中位数索引(0.5 分位数)。
¥d3.medianIndex - compute the median index of an iterable of numbers (the 0.5-quantile).
d3.cumsum - 计算可迭代对象的累积和。
¥d3.cumsum - compute the cumulative sum of an iterable.
d3.quantile - 计算数字可迭代对象的分位数。
¥d3.quantile - compute a quantile for an iterable of numbers.
d3.quantileIndex - 计算数字可迭代对象的分位数索引。
¥d3.quantileIndex - compute a quantile index for an iterable of numbers.
d3.quantileSorted - 计算已排序数字数组的分位数。
¥d3.quantileSorted - compute a quantile for a sorted array of numbers.
d3.rank - 计算可迭代对象的排序。
¥d3.rank - compute the rank order of an iterable.
d3.variance - 计算可迭代对象的方差。
¥d3.variance - compute the variance of an iterable of numbers.
d3.deviation - 计算可迭代对象的标准差。
¥d3.deviation - compute the standard deviation of an iterable of numbers.
d3.every - 测试所有值是否满足条件。
¥d3.every - test if all values satisfy a condition.
d3.some - 测试任何值是否满足条件。
¥d3.some - test if any value satisfies a condition.
刻度
从连续间隔中生成代表值。
¥Generate representative values from a continuous interval.
d3.ticks - 根据数值间隔生成代表值。
¥d3.ticks - generate representative values from a numeric interval.
d3.tickIncrement - 根据数值间隔生成代表值。
¥d3.tickIncrement - generate representative values from a numeric interval.
d3.tickStep - 根据数值间隔生成代表值。
¥d3.tickStep - generate representative values from a numeric interval.
d3.nice - 扩展间隔以与刻度对齐。
¥d3.nice - extend an interval to align with ticks.
d3.range - 生成一系列数值。
¥d3.range - generate a range of numeric values.
变换
导出新数组。
¥Derive new arrays.
d3.cross - 计算两个可迭代对象的笛卡尔积。
¥d3.cross - compute the Cartesian product of two iterables.
d3.merge - 将多个可迭代对象合并为一个数组。
¥d3.merge - merge multiple iterables into one array.
d3.pairs - 创建一个相邻元素对的数组。
¥d3.pairs - create an array of adjacent pairs of elements.
d3.transpose - 转置一个数组的数组。
¥d3.transpose - transpose an array of arrays.
d3.zip - 转置可变数量的数组。
¥d3.zip - transpose a variable number of arrays.
d3.filter - 过滤值。
¥d3.filter - filter values.
d3.map - 地图值。
¥d3.map - map values.
d3.reduce - 减少值。
¥d3.reduce - reduce values.
d3-axis
比例尺的人类可读参考标记。
¥Human-readable reference marks for scales.
d3.axisTop - 创建一个新的顶部向轴生成器。
¥d3.axisTop - create a new top-oriented axis generator.
d3.axisRight - 创建一个新的右向轴生成器。
¥d3.axisRight - create a new right-oriented axis generator.
d3.axisBottom - 创建一个新的底部导向轴生成器。
¥d3.axisBottom - create a new bottom-oriented axis generator.
d3.axisLeft - 创建一个新的左侧导向轴生成器。
¥d3.axisLeft - create a new left-oriented axis generator.
axis - 为给定的选择生成轴。
¥axis - generate an axis for the given selection.
axis.scale - 设置比例。
¥axis.scale - set the scale.
axis.ticks - 自定义刻度的生成和格式。
¥axis.ticks - customize how ticks are generated and formatted.
axis.tickArguments - 自定义刻度的生成和格式。
¥axis.tickArguments - customize how ticks are generated and formatted.
axis.tickValues - 明确设置刻度值。
¥axis.tickValues - set the tick values explicitly.
axis.tickFormat - 明确设置刻度格式。
¥axis.tickFormat - set the tick format explicitly.
axis.tickSize - 设置刻度的大小。
¥axis.tickSize - set the size of the ticks.
axis.tickSizeInner - 设置内部刻度的大小。
¥axis.tickSizeInner - set the size of inner ticks.
axis.tickSizeOuter - 设置外部(范围)刻度的大小。
¥axis.tickSizeOuter - set the size of outer (extent) ticks.
axis.tickPadding - 设置刻度线和标签之间的填充。
¥axis.tickPadding - set the padding between ticks and labels.
axis.offset - 设置清晰边缘的像素偏移量。
¥axis.offset - set the pixel offset for crisp edges.
d3-brush
使用鼠标或触摸选择一维或二维区域。
¥Select a one- or two-dimensional region using the mouse or touch.
d3.brush - 创建一个新的二维画笔。
¥d3.brush - create a new two-dimensional brush.
d3.brushX - 创建一个沿 x 维度的画笔。
¥d3.brushX - create a brush along the x-dimension.
d3.brushY - 创建一个沿 y 维度的画笔。
¥d3.brushY - create a brush along the y-dimension.
brush - 将画笔应用于选区。
¥brush - apply the brush to a selection.
brush.move - 移动画笔选择。
¥brush.move - move the brush selection.
brush.clear - 清除画笔选择。
¥brush.clear - clear the brush selection.
brush.extent - 定义可刷区域。
¥brush.extent - define the brushable region.
brush.filter - 控制哪些输入事件启动刷图。
¥brush.filter - control which input events initiate brushing.
brush.touchable - 设置触摸支持检测器。
¥brush.touchable - set the touch support detector.
brush.keyModifiers - 启用或禁用键交互。
¥brush.keyModifiers - enable or disable key interaction.
brush.handleSize - 设置画笔句柄的大小。
¥brush.handleSize - set the size of the brush handles.
brush.on - 监听画笔事件。
¥brush.on - listen for brush events.
d3.brushSelection - 获取给定节点的画笔选择。
¥d3.brushSelection - get the brush selection for a given node.
d3-chord
d3.chord - 创建一个新的弦布局。
¥d3.chord - create a new chord layout.
chord - 计算给定矩阵的布局。
¥chord - compute the layout for the given matrix.
chord.padAngle - 设置相邻组之间的填充。
¥chord.padAngle - set the padding between adjacent groups.
chord.sortGroups - 定义组顺序。
¥chord.sortGroups - define the group order.
chord.sortSubgroups - 定义组内的源顺序和目标顺序。
¥chord.sortSubgroups - define the source and target order within groups.
chord.sortChords - 定义跨组的弦顺序。
¥chord.sortChords - define the chord order across groups.
d3.chordDirected - 创建一个有向和弦生成器。
¥d3.chordDirected - create a directed chord generator.
d3.chordTranspose - 创建一个转置和弦生成器。
¥d3.chordTranspose - create a transposed chord generator.
d3.ribbon - 创建一个带状生成器。
¥d3.ribbon - create a ribbon shape generator.
ribbon - 生成丝带形状。
¥ribbon - generate a ribbon shape.
ribbon.source - 设置源访问器。
¥ribbon.source - set the source accessor.
ribbon.target - 设置目标访问器。
¥ribbon.target - set the target accessor.
ribbon.radius - 设置条带源和目标半径。
¥ribbon.radius - set the ribbon source and target radius.
ribbon.sourceRadius - 设置色带源半径。
¥ribbon.sourceRadius - set the ribbon source radius.
ribbon.targetRadius - 设置色带目标半径。
¥ribbon.targetRadius - set the ribbon target radius.
ribbon.startAngle - 设置条带源或目标的起始角度。
¥ribbon.startAngle - set the ribbon source or target start angle.
ribbon.endAngle - 设置条带源或目标的结束角度。
¥ribbon.endAngle - set the ribbon source or target end angle.
ribbon.padAngle - 设置填充角度访问器。
¥ribbon.padAngle - set the pad angle accessor.
ribbon.context - 设置渲染上下文。
¥ribbon.context - set the render context.
d3.ribbonArrow - 创建一个箭头带状生成器。
¥d3.ribbonArrow - create an arrow ribbon generator.
ribbonArrow.headRadius - 设置箭头半径访问器。
¥ribbonArrow.headRadius - set the arrowhead radius accessor.
d3-color
颜色操作和色彩空间转换。
¥Color manipulation and color space conversion.
d3.color - 解析给定的 CSS 颜色说明符。
¥d3.color - parse the given CSS color specifier.
color.opacity - 颜色的不透明度。
¥color.opacity - the color’s opacity.
color.rgb - 计算此颜色的 RGB 等效值。
¥color.rgb - compute the RGB equivalent of this color.
color.copy - 返回此颜色的副本。
¥color.copy - return a copy of this color.
color.brighter - 创建此颜色的更亮副本。
¥color.brighter - create a brighter copy of this color.
color.darker - 创建此颜色的更暗副本。
¥color.darker - create a darker copy of this color.
color.displayable - 如果颜色在标准硬件上可显示,则返回 true。
¥color.displayable - returns true if the color is displayable on standard hardware.
color.formatHex - 返回此颜色的十六进制 RRGGBB 字符串表示形式。
¥color.formatHex - returns the hexadecimal RRGGBB string representation of this color.
color.formatHex8 - 返回此颜色的十六进制 RRGGBBAA 字符串表示形式。
¥color.formatHex8 - returns the hexadecimal RRGGBBAA string representation of this color.
color.formatHsl - 返回此颜色的 RGB 字符串表示形式。
¥color.formatHsl - returns the RGB string representation of this color.
color.formatRgb - 返回此颜色的 HSL 字符串表示形式。
¥color.formatRgb - returns the HSL string representation of this color.
color.toString - 返回此颜色的 RGB 字符串表示形式。
¥color.toString - returns the RGB string representation of this color.
d3.rgb - 创建一个新的 RGB 颜色。
¥d3.rgb - create a new RGB color.
rgb.clamp - 返回此颜色在 RGB 颜色空间中的副本。
¥rgb.clamp - returns copy of this color clamped to the RGB color space.
d3.hsl - 创建一个新的 HSL 颜色。
¥d3.hsl - create a new HSL color.
hsl.clamp - 返回此颜色在 HSL 颜色空间中的副本。
¥hsl.clamp - returns copy of this color clamped to the HSL color space.
d3.lab - 创建一个新的 Lab 颜色。
¥d3.lab - create a new Lab color.
d3.gray - 创建一个新的 Lab 灰色。
¥d3.gray - create a new Lab gray.
d3.hcl - 创建一个新的 HCL 颜色。
¥d3.hcl - create a new HCL color.
d3.lch - 创建一个新的 HCL 颜色。
¥d3.lch - create a new HCL color.
d3.cubehelix - 创建一个新的 Cubehelix 颜色。
¥d3.cubehelix - create a new Cubehelix color.
d3-contour
使用行进方格计算轮廓多边形。
¥Compute contour polygons using marching squares.
d3.contours - 创建一个新的轮廓生成器。
¥d3.contours - create a new contour generator.
contours - 计算给定值网格的轮廓。
¥contours - compute the contours for a given grid of values.
contours.contour - 计算给定值的轮廓。
¥contours.contour - compute a contour for a given value.
contours.size - 设置轮廓生成器的大小。
¥contours.size - set the size of a contour generator.
contours.smooth - 设置生成的轮廓是否平滑。
¥contours.smooth - set whether or not the generated contours are smoothed.
contours.thresholds - 设置轮廓生成器的阈值。
¥contours.thresholds - set the thresholds of a contour generator.
d3.contourDensity - 创建一个新的密度估算器。
¥d3.contourDensity - create a new density estimator.
density - 估计给定样本数组的密度。
¥density - estimate the density of a given array of samples.
density.x - 设置密度估计器的 x 访问器。
¥density.x - set the x accessor of the density estimator.
density.y - 设置密度估计器的 y 访问器。
¥density.y - set the y accessor of the density estimator.
density.weight - 设置密度估计器的权重访问器。
¥density.weight - set the weight accessor of the density estimator.
density.size - 设置密度估算器的大小。
¥density.size - set the size of the density estimator.
density.cellSize - 设置密度估计器的单元大小。
¥density.cellSize - set the cell size of the density estimator.
density.thresholds - 设置密度估计器的阈值。
¥density.thresholds - set the thresholds of the density estimator.
density.bandwidth - 设置密度估计器的带宽。
¥density.bandwidth - set the bandwidth of the density estimator.
density.contours - 计算密度轮廓。
¥density.contours - compute density contours.
d3-delaunay
计算一组二维点的 Voronoi 图。
¥Compute the Voronoi diagram of a set of two-dimensional points.
新的 Delaunay 函数 - 为点坐标数组创建一个 Delaunay 三角剖分。
¥new Delaunay - create a delaunay triangulation for an array of point coordinates.
Delaunay.from - 为点的可迭代对象创建一个 Delaunay 三角剖分。
¥Delaunay.from - create a delaunay triangulation for an iterable of points.
delaunay.points - 点的坐标。
¥delaunay.points - the coordinates of the points.
delaunay.halfedges - Delaunay 半边。
¥delaunay.halfedges - the delaunay halfedges.
delaunay.hull - 作为点索引的凸包。
¥delaunay.hull - the convex hull as point indices.
delaunay.triangles - Delaunay 三角形。
¥delaunay.triangles - the delaunay triangles.
delaunay.inedges - Delaunay 内边
¥delaunay.inedges - the delaunay inedges
delaunay.find - 在 Delaunay 三角剖分中找到最近的点。
¥delaunay.find - find the closest point in the delaunay triangulation.
delaunay.neighbors - Delaunay 三角剖分中某个点的邻域。
¥delaunay.neighbors - the neighbors of a point in the delaunay triangulation.
delaunay.render - 渲染 Delaunay 三角剖分的边。
¥delaunay.render - render the edges of the delaunay triangulation.
delaunay.renderHull - 渲染凸包。
¥delaunay.renderHull - render the convex hull.
delaunay.renderTriangle - 渲染三角形。
¥delaunay.renderTriangle - render a triangle.
delaunay.renderPoints - 渲染点。
¥delaunay.renderPoints - render the points.
delaunay.hullPolygon - 作为点坐标的闭合凸包。
¥delaunay.hullPolygon - the closed convex hull as point coordinates.
delaunay.trianglePolygons - 将所有三角形作为多边形进行迭代。
¥delaunay.trianglePolygons - iterate over all the triangles as polygons.
delaunay.trianglePolygon - 以多边形形式返回一个三角形。
¥delaunay.trianglePolygon - return a triangle as a polygon.
delaunay.update - 就地更新 Delaunay 三角剖分。
¥delaunay.update - update a delaunay triangulation in place.
delaunay.voronoi - 计算与 Delaunay 三角剖分相关的 Voronoi 图。
¥delaunay.voronoi - compute the voronoi diagram associated with a delaunay triangulation.
voronoi.delaunay - Voronoi 图的源 Delaunay 三角剖分。
¥voronoi.delaunay - the voronoi diagram’s source delaunay triangulation.
voronoi.circumcenters - 三角形的外接圆心。
¥voronoi.circumcenters - the triangles’ circumcenters.
voronoi.vectors - Voronoi 图外部(无限)单元的方向。
¥voronoi.vectors - directions for the outer (infinite) cells of the voronoi diagram.
voronoi.xmin - 设置范围的 xmin 边界。
¥voronoi.xmin - set the xmin bound of the extent.
voronoi.ymin - 设置范围的 ymin 边界。
¥voronoi.ymin - set the ymin bound of the extent.
voronoi.xmax - 设置范围的 xmax 边界。
¥voronoi.xmax - set the xmax bound of the extent.
voronoi.ymax - 设置范围的 ymax 边界。
¥voronoi.ymax - set the ymax bound of the extent.
voronoi.contains - 测试一个点是否位于沃罗诺伊单元内。
¥voronoi.contains - test whether a point is inside a voronoi cell.
voronoi.neighbors - Voronoi 图中某个点的邻域。
¥voronoi.neighbors - the neighbors of a point in the voronoi diagram.
voronoi.render - 渲染 Voronoi 单元的网格。
¥voronoi.render - render the mesh of voronoi cells.
voronoi.renderBounds - 渲染范围。
¥voronoi.renderBounds - render the extent.
voronoi.renderCell - 渲染 Voronoi 单元。
¥voronoi.renderCell - render a voronoi cell.
voronoi.cellPolygons - 将所有单元格作为多边形进行迭代。
¥voronoi.cellPolygons - iterate over all the cells as polygons.
voronoi.cellPolygon - 以多边形形式返回一个单元格。
¥voronoi.cellPolygon - return a cell as a polygon.
voronoi.update - 就地更新 Voronoi 图。
¥voronoi.update - update a voronoi diagram in place.
d3-dispatch
使用命名回调函数分离关注点。
¥Separate concerns using named callbacks.
d3.dispatch - 创建一个自定义事件调度器。
¥d3.dispatch - create a custom event dispatcher.
dispatch.on - 注册或注销事件监听器。
¥dispatch.on - register or unregister an event listener.
dispatch.copy - 创建一个调度器的副本。
¥dispatch.copy - create a copy of a dispatcher.
dispatch.call - 向已注册的监听器发送事件。
¥dispatch.call - dispatch an event to registered listeners.
dispatch.apply - 向已注册的监听器发送事件。
¥dispatch.apply - dispatch an event to registered listeners.
d3-drag
使用鼠标或触摸输入拖放 SVG、HTML 或 Canvas。
¥Drag and drop SVG, HTML or Canvas using mouse or touch input.
d3.drag - 创建拖动行为。
¥d3.drag - create a drag behavior.
drag - 将拖动行为应用于选区。
¥drag - apply the drag behavior to a selection.
drag.container - 设置坐标系。
¥drag.container - set the coordinate system.
drag.filter - 忽略一些初始输入事件。
¥drag.filter - ignore some initiating input events.
drag.touchable - 设置触摸支持检测器。
¥drag.touchable - set the touch support detector.
drag.subject - 设置被拖动的对象。
¥drag.subject - set the thing being dragged.
drag.clickDistance - 设置点击距离阈值。
¥drag.clickDistance - set the click distance threshold.
drag.on - 监听拖动事件。
¥drag.on - listen for drag events.
d3.dragDisable - 阻止原生拖放和文本选择。
¥d3.dragDisable - prevent native drag-and-drop and text selection.
d3.dragEnable - 启用原生拖放和文本选择功能。
¥d3.dragEnable - enable native drag-and-drop and text selection.
event.on - 监听当前手势的拖动事件。
¥event.on - listen for drag events on the current gesture.
d3-dsv
解析和格式化以分隔符分隔的值,最常见的是 CSV 和 TSV。
¥Parse and format delimiter-separated values, most commonly CSV and TSV.
d3.csvParse - 解析给定的 CSV 字符串,返回一个对象数组。
¥d3.csvParse - parse the given CSV string, returning an array of objects.
d3.csvParseRows - 解析给定的 CSV 字符串,返回一个行数组。
¥d3.csvParseRows - parse the given CSV string, returning an array of rows.
d3.csvFormat - 将给定的对象数组格式化为 CSV。
¥d3.csvFormat - format the given array of objects as CSV.
d3.csvFormatBody - 将给定的对象数组格式化为 CSV。
¥d3.csvFormatBody - format the given array of objects as CSV.
d3.csvFormatRows - 将给定的行数组格式化为 CSV。
¥d3.csvFormatRows - format the given array of rows as CSV.
d3.csvFormatRow - 将给定的行格式化为 CSV。
¥d3.csvFormatRow - format the given row as CSV.
d3.csvFormatValue - 将给定值格式化为 CSV。
¥d3.csvFormatValue - format the given value as CSV.
d3.tsvParse - 解析给定的 TSV 字符串,返回一个对象数组。
¥d3.tsvParse - parse the given TSV string, returning an array of objects.
d3.tsvParseRows - 解析给定的 TSV 字符串,返回一个行数组。
¥d3.tsvParseRows - parse the given TSV string, returning an array of rows.
d3.tsvFormat - 将给定的对象数组格式化为 TSV。
¥d3.tsvFormat - format the given array of objects as TSV.
d3.tsvFormatBody - 将给定的对象数组格式化为 TSV。
¥d3.tsvFormatBody - format the given array of objects as TSV.
d3.tsvFormatRows - 将给定的行数组格式化为 TSV。
¥d3.tsvFormatRows - format the given array of rows as TSV.
d3.tsvFormatRow - 将给定行格式化为 TSV。
¥d3.tsvFormatRow - format the given row as TSV.
d3.tsvFormatValue - 将给定值格式化为 TSV。
¥d3.tsvFormatValue - format the given value as TSV.
d3.dsvFormat - 为给定的分隔符创建一个新的解析器和格式化程序。
¥d3.dsvFormat - create a new parser and formatter for the given delimiter.
dsv.parse - 解析给定的字符串,返回一个对象数组。
¥dsv.parse - parse the given string, returning an array of objects.
dsv.parseRows - 解析给定的字符串,返回一个行数组。
¥dsv.parseRows - parse the given string, returning an array of rows.
dsv.format - 格式化给定的对象数组。
¥dsv.format - format the given array of objects.
dsv.formatBody - 格式化给定的对象数组。
¥dsv.formatBody - format the given array of objects.
dsv.formatRows - 格式化给定的行数组。
¥dsv.formatRows - format the given array of rows.
dsv.formatRow - 格式化给定行。
¥dsv.formatRow - format the given row.
dsv.formatValue - 格式化给定值。
¥dsv.formatValue - format the given value.
d3.autoType - 自动推断给定对象的值类型。
¥d3.autoType - automatically infer value types for the given object.
d3-ease
用于实现平滑动画的缓动函数。
¥Easing functions for smooth animation.
ease - 按给定的规范化时间进行缓动。
¥ease - ease the given normalized time.
d3.easeLinear - 线性缓动;恒等函数。
¥d3.easeLinear - linear easing; the identity function.
d3.easePolyIn - 多项式缓动;将时间的指数 进行求值。
¥d3.easePolyIn - polynomial easing; raises time to the given power.
d3.easePolyOut - 反向多项式缓动。
¥d3.easePolyOut - reverse polynomial easing.
d3.easePoly - easePolyInOut 的别名。
¥d3.easePoly - an alias for easePolyInOut.
d3.easePolyInOut - 对称多项式缓动。
¥d3.easePolyInOut - symmetric polynomial easing.
poly.exponent - 指定多项式指数。
¥poly.exponent - specify the polynomial exponent.
d3.easeQuadIn - 二次缓动;平方时间。
¥d3.easeQuadIn - quadratic easing; squares time.
d3.easeQuadOut - 反向二次缓动。
¥d3.easeQuadOut - reverse quadratic easing.
d3.easeQuad - easeQuadInOut 的别名。
¥d3.easeQuad - an alias for easeQuadInOut.
d3.easeQuadInOut - 对称二次缓动。
¥d3.easeQuadInOut - symmetric quadratic easing.
d3.easeCubicIn - 三次缓和;时间立方。
¥d3.easeCubicIn - cubic easing; cubes time.
d3.easeCubicOut - 反向三次缓动。
¥d3.easeCubicOut - reverse cubic easing.
d3.easeCubic - easeCubicInOut 的别名。
¥d3.easeCubic - an alias for easeCubicInOut.
d3.easeCubicInOut - 对称三次缓动。
¥d3.easeCubicInOut - symmetric cubic easing.
d3.easeSinIn - 正弦缓动。
¥d3.easeSinIn - sinusoidal easing.
d3.easeSinOut - 反向正弦缓动。
¥d3.easeSinOut - reverse sinusoidal easing.
d3.easeSin - easeSinInOut 的别名。
¥d3.easeSin - an alias for easeSinInOut.
d3.easeSinInOut - 对称正弦缓动。
¥d3.easeSinInOut - symmetric sinusoidal easing.
d3.easeExpIn - 指数缓动。
¥d3.easeExpIn - exponential easing.
d3.easeExpOut - 反向指数缓动。
¥d3.easeExpOut - reverse exponential easing.
d3.easeExp - easeExpInOut 的别名。
¥d3.easeExp - an alias for easeExpInOut.
d3.easeExpInOut - 对称指数缓动。
¥d3.easeExpInOut - symmetric exponential easing.
d3.easeCircleIn - 循环缓动。
¥d3.easeCircleIn - circular easing.
d3.easeCircleOut - 反向循环缓动。
¥d3.easeCircleOut - reverse circular easing.
d3.easeCircle - easeCircleInOut 的别名。
¥d3.easeCircle - an alias for easeCircleInOut.
d3.easeCircleInOut - 对称圆形缓动。
¥d3.easeCircleInOut - symmetric circular easing.
d3.easeElasticIn - 弹性缓动,像橡皮筋一样。
¥d3.easeElasticIn - elastic easing, like a rubber band.
d3.easeElastic - easeElasticOut 的别名。
¥d3.easeElastic - an alias for easeElasticOut.
d3.easeElasticOut - 反向弹性缓动。
¥d3.easeElasticOut - reverse elastic easing.
d3.easeElasticInOut - 对称弹性缓动。
¥d3.easeElasticInOut - symmetric elastic easing.
elastic.amplitude - 指定弹性振幅。
¥elastic.amplitude - specify the elastic amplitude.
elastic.period - 指定弹性周期。
¥elastic.period - specify the elastic period.
d3.easeBackIn - 预期缓动,就像舞者在跳跃前弯曲膝盖。
¥d3.easeBackIn - anticipatory easing, like a dancer bending his knees before jumping.
d3.easeBackOut - 反向预期缓动。
¥d3.easeBackOut - reverse anticipatory easing.
d3.easeBack - easeBackInOut 的别名。
¥d3.easeBack - an alias for easeBackInOut.
d3.easeBackInOut - 对称预期缓动。
¥d3.easeBackInOut - symmetric anticipatory easing.
back.overshoot - 指定过冲量。
¥back.overshoot - specify the amount of overshoot.
d3.easeBounceIn - 像橡皮球一样弹跳缓动。
¥d3.easeBounceIn - bounce easing, like a rubber ball.
d3.easeBounce - easeBounceOut 的别名。
¥d3.easeBounce - an alias for easeBounceOut.
d3.easeBounceOut - 反向反弹缓动。
¥d3.easeBounceOut - reverse bounce easing.
d3.easeBounceInOut - 对称弹跳缓动。
¥d3.easeBounceInOut - symmetric bounce easing.
d3-fetch
基于 Fetch API 的便捷方法。
¥Convenience methods on top of the Fetch API.
d3.blob - 获取 blob 文件。
¥d3.blob - get a file as a blob.
d3.buffer - 获取数组缓冲区文件。
¥d3.buffer - get a file as an array buffer.
d3.csv - 获取逗号分隔值 (CSV) 文件。
¥d3.csv - get a comma-separated values (CSV) file.
d3.dsv - 获取分隔符分隔值 (CSV) 文件。
¥d3.dsv - get a delimiter-separated values (CSV) file.
d3.html - 获取 HTML 文件。
¥d3.html - get an HTML file.
d3.image - 获取图片。
¥d3.image - get an image.
d3.json - 获取 JSON 文件。
¥d3.json - get a JSON file.
d3.svg - 获取 SVG 文件。
¥d3.svg - get an SVG file.
d3.text - 获取纯文本文件。
¥d3.text - get a plain text file.
d3.tsv - 获取制表符分隔值 (TSV) 文件。
¥d3.tsv - get a tab-separated values (TSV) file.
d3.xml - 获取 XML 文件。
¥d3.xml - get an XML file.
d3-force
使用速度 Verlet 积分的力导向图布局。
¥Force-directed graph layout using velocity Verlet integration.
d3.forceSimulation - 创建一个新的力模拟。
¥d3.forceSimulation - create a new force simulation.
simulation.restart - 重新加热并重启模拟计时器。
¥simulation.restart - reheat and restart the simulation’s timer.
simulation.stop - 停止模拟计时器。
¥simulation.stop - stop the simulation’s timer.
simulation.tick - 将模拟推进一步。
¥simulation.tick - advance the simulation one step.
simulation.nodes - 设置模拟节点。
¥simulation.nodes - set the simulation’s nodes.
simulation.alpha - 设置当前 alpha 值。
¥simulation.alpha - set the current alpha.
simulation.alphaMin - 设置最小 Alpha 阈值。
¥simulation.alphaMin - set the minimum alpha threshold.
simulation.alphaDecay - 设置 alpha 指数衰减率。
¥simulation.alphaDecay - set the alpha exponential decay rate.
simulation.alphaTarget - 设置目标 Alpha 值。
¥simulation.alphaTarget - set the target alpha.
simulation.velocityDecay - 设置速度衰减率。
¥simulation.velocityDecay - set the velocity decay rate.
simulation.force - 添加或删除一个力。
¥simulation.force - add or remove a force.
simulation.find - 查找距离给定位置最近的节点。
¥simulation.find - find the closest node to the given position.
simulation.randomSource - 设置模拟的随机源。
¥simulation.randomSource - set the simulation’s random source.
simulation.on - 添加或删除一个事件监听器。
¥simulation.on - add or remove an event listener.
force - 施加力。
¥force - apply the force.
force.initialize - 使用给定节点初始化力。
¥force.initialize - initialize the force with the given nodes.
d3.forceCenter - 创建定心力。
¥d3.forceCenter - create a centering force.
center.x - 设置中心 x 坐标。
¥center.x - set the center x-coordinate.
center.y - 设置中心 y 坐标。
¥center.y - set the center y coordinate.
center.strength - 设置居中力的强度。
¥center.strength - set the strength of the centering force.
d3.forceCollide - 创建一个圆形碰撞力。
¥d3.forceCollide - create a circle collision force.
collide.radius - 设置圆半径。
¥collide.radius - set the circle radius.
collide.strength - 设置碰撞分辨率强度。
¥collide.strength - set the collision resolution strength.
collide.iterations - 设置迭代次数。
¥collide.iterations - set the number of iterations.
d3.forceLink - 创建一个链接力。
¥d3.forceLink - create a link force.
link.links - 设置链接数组。
¥link.links - set the array of links.
link.id - 通过数字索引或字符串标识符链接节点。
¥link.id - link nodes by numeric index or string identifier.
link.distance - 设置链接距离。
¥link.distance - set the link distance.
link.strength - 设置链接强度。
¥link.strength - set the link strength.
link.iterations - 设置迭代次数。
¥link.iterations - set the number of iterations.
d3.forceManyBody - 创建一个多体力。
¥d3.forceManyBody - create a many-body force.
manyBody.strength - 设置力的强度。
¥manyBody.strength - set the force strength.
manyBody.theta - 设置 Barnes–Hut 近似精度。
¥manyBody.theta - set the Barnes–Hut approximation accuracy.
manyBody.distanceMin - 当节点靠近时限制力。
¥manyBody.distanceMin - limit the force when nodes are close.
manyBody.distanceMax - 当节点远离时限制力。
¥manyBody.distanceMax - limit the force when nodes are far.
d3.forceX - 创建一个 x 轴定位力。
¥d3.forceX - create an x-positioning force.
x.strength - 设置力的强度。
¥x.strength - set the force strength.
x.x - 设置目标 x 坐标。
¥x.x - set the target x-coordinate.
d3.forceY - 创建一个 y 轴定位力。
¥d3.forceY - create an y-positioning force.
y.strength - 设置力的强度。
¥y.strength - set the force strength.
y.y - 设置目标 y 坐标。
¥y.y - set the target y coordinate.
d3.forceRadial - 创建一个径向定位力。
¥d3.forceRadial - create a radial positioning force.
radial.strength - 设置力的强度。
¥radial.strength - set the force strength.
radial.radius - 设置目标半径。
¥radial.radius - set the target radius.
radial.x - 设置目标中心 x 坐标。
¥radial.x - set the target center x-coordinate.
radial.y - 设置目标中心 y 坐标。
¥radial.y - set the target center y coordinate.
d3-format
格式化数字以供人类理解。
¥Format numbers for human consumption.
d3.format - 默认语言环境下 locale.format 的别名。
¥d3.format - alias for locale.format on the default locale.
d3.formatPrefix - 默认语言环境下 locale.formatPrefix 的别名。
¥d3.formatPrefix - alias for locale.formatPrefix on the default locale.
locale.format - 创建一个数字格式。
¥locale.format - create a number format.
locale.formatPrefix - 创建一个国际单位制前缀数字格式。
¥locale.formatPrefix - create a SI-prefix number format.
d3.formatSpecifier - 解析数字格式说明符。
¥d3.formatSpecifier - parse a number format specifier.
新的 d3.FormatSpecifier - 增强数字格式说明符对象。
¥new d3.FormatSpecifier - augments a number format specifier object.
d3.precisionFixed - 计算定点表示法的小数精度。
¥d3.precisionFixed - compute decimal precision for fixed-point notation.
d3.precisionPrefix - 计算国际单位制前缀表示法的小数精度。
¥d3.precisionPrefix - compute decimal precision for SI-prefix notation.
d3.precisionRound - 计算四舍五入表示法的有效数字。
¥d3.precisionRound - compute significant digits for rounded notation.
d3.formatLocale - 定义自定义语言环境。
¥d3.formatLocale - define a custom locale.
d3.formatDefaultLocale - 定义默认语言环境。
¥d3.formatDefaultLocale - define the default locale.
d3-geo
地理投影、形状和数学。
¥Geographic projections, shapes and math.
路径
d3.geoPath - 创建一个新的地理路径生成器。
¥d3.geoPath - create a new geographic path generator.
path - 投影并渲染指定的特性。
¥path - project and render the specified feature.
path.area - 计算给定特性的投影平面面积。
¥path.area - compute the projected planar area of a given feature.
path.bounds - 计算给定特性的投影平面边界框。
¥path.bounds - compute the projected planar bounding box of a given feature.
path.centroid - 计算给定特性的投影平面质心。
¥path.centroid - compute the projected planar centroid of a given feature.
path.digits - 设置输出精度。
¥path.digits - set the output precision.
path.measure - 计算给定特性的投影平面长度。
¥path.measure - compute the projected planar length of a given feature.
path.projection - 设置地理投影。
¥path.projection - set the geographic projection.
path.context - 设置渲染上下文。
¥path.context - set the render context.
path.pointRadius - 设置显示点特性的半径。
¥path.pointRadius - set the radius to display point features.
投影
projection - 将球面上的指定点投影到平面。
¥projection - project the specified point from the sphere to the plane.
projection.invert - 将指定点从平面反投影到球体。
¥projection.invert - unproject the specified point from the plane to the sphere.
projection.stream - 将指定的流封装到投影几何体中。
¥projection.stream - wrap the specified stream to project geometry.
projection.preclip - 设置投影的球面裁剪函数。
¥projection.preclip - set the projection’s spherical clipping function.
projection.postclip - 设置投影的笛卡尔裁剪函数。
¥projection.postclip - set the projection’s cartesian clipping function.
projection.clipAngle - 设置裁剪圆的半径。
¥projection.clipAngle - set the radius of the clip circle.
projection.clipExtent - 设置视口裁剪范围(以像素为单位)。
¥projection.clipExtent - set the viewport clip extent, in pixels.
projection.scale - 设置比例因子。
¥projection.scale - set the scale factor.
projection.translate - 设置平移偏移量。
¥projection.translate - set the translation offset.
projection.center - 设置中心点。
¥projection.center - set the center point.
projection.angle - 设置投影后旋转。
¥projection.angle - set the post-projection rotation.
projection.reflectX - 反映 x 维度。
¥projection.reflectX - reflect the x-dimension.
projection.reflectY - 反映 y 维度。
¥projection.reflectY - reflect the y-dimension.
projection.rotate - 设置三轴球面旋转角度。
¥projection.rotate - set the three-axis spherical rotation angles.
projection.precision - 设置自适应采样的精度阈值。
¥projection.precision - set the precision threshold for adaptive sampling.
projection.fitExtent - 设置比例尺并进行平移以适应 GeoJSON 对象。
¥projection.fitExtent - set the scale and translate to fit a GeoJSON object.
projection.fitSize - 设置比例尺并进行平移以适应 GeoJSON 对象。
¥projection.fitSize - set the scale and translate to fit a GeoJSON object.
projection.fitWidth - 设置比例尺并进行平移以适应 GeoJSON 对象。
¥projection.fitWidth - set the scale and translate to fit a GeoJSON object.
projection.fitHeight - 设置比例尺并进行平移以适应 GeoJSON 对象。
¥projection.fitHeight - set the scale and translate to fit a GeoJSON object.
原始投影
project - 将球面上的指定点投影到平面。
¥project - project the specified point from the sphere to the plane.
project.invert - 将指定点从平面反投影到球体。
¥project.invert - unproject the specified point from the plane to the sphere.
d3.geoProjection - 创建自定义投影。
¥d3.geoProjection - create a custom projection.
d3.geoProjectionMutator - 创建一个自定义的可配置投影。
¥d3.geoProjectionMutator - create a custom configurable projection.
d3.geoTransform - 定义自定义几何变换。
¥d3.geoTransform - define a custom geometry transform.
d3.geoIdentity - 缩放、平移或裁剪平面几何体。
¥d3.geoIdentity - scale, translate or clip planar geometry.
d3.geoClipAntimeridian - 切割与对向子午线相交的球形几何体。
¥d3.geoClipAntimeridian - cuts spherical geometries that cross the antimeridian.
d3.geoClipCircle - 将球形几何体裁剪为小圆圈。
¥d3.geoClipCircle - clips spherical geometries to a small circle.
d3.geoClipRectangle - 将平面几何体裁剪为矩形视口。
¥d3.geoClipRectangle - clips planar geometries to a rectangular viewport.
方位投影
d3.geoAzimuthalEqualArea - 方位等面积投影。
¥d3.geoAzimuthalEqualArea - the azimuthal equal-area projection.
d3.geoAzimuthalEquidistant - 方位等距投影。
¥d3.geoAzimuthalEquidistant - the azimuthal equidistant projection.
d3.geoGnomonic - 球面投影。
¥d3.geoGnomonic - the gnomonic projection.
d3.geoOrthographic - 方位正交投影。
¥d3.geoOrthographic - the azimuthal orthographic projection.
d3.geoStereographic - 方位立体投影。
¥d3.geoStereographic - the azimuthal stereographic projection.
圆锥投影
conic.parallels - 设置两条标准纬线。
¥conic.parallels - set the two standard parallels.
d3.geoConicConformal - 圆锥共形投影。
¥d3.geoConicConformal - the conic conformal projection.
d3.geoConicEqualArea - 圆锥等面积(阿尔伯斯)投影。
¥d3.geoConicEqualArea - the conic equal-area (Albers) projection.
d3.geoConicEquidistant - 圆锥等距投影。
¥d3.geoConicEquidistant - the conic equidistant projection.
d3.geoAlbers - 阿尔伯斯等积圆锥投影。
¥d3.geoAlbers - the Albers equal-area conic projection.
d3.geoAlbersUsa - 美国的复合 Albers 投影。
¥d3.geoAlbersUsa - a composite Albers projection for the United States.
圆柱投影
d3.geoEquirectangular - 等距矩形(平板圆柱)投影。
¥d3.geoEquirectangular - the equirectangular (plate carreé) projection.
d3.geoMercator - 球面墨卡托投影。
¥d3.geoMercator - the spherical Mercator projection.
d3.geoTransverseMercator - 横轴球面墨卡托投影。
¥d3.geoTransverseMercator - the transverse spherical Mercator projection.
d3.geoEqualEarth - 平等地球投影。
¥d3.geoEqualEarth - the Equal Earth projection.
d3.geoNaturalEarth1 - 平等地球投影,版本 1。
¥d3.geoNaturalEarth1 - the Equal Earth projection, version 1.
流
d3.geoStream - 将 GeoJSON 对象转换为几何流。
¥d3.geoStream - convert a GeoJSON object to a geometry stream.
stream.point - 表示具有指定坐标的点。
¥stream.point - indicates a point with the specified coordinates.
stream.lineStart - 表示线或环的起点。
¥stream.lineStart - indicates the start of a line or ring.
stream.lineEnd - 表示线或环的终点。
¥stream.lineEnd - indicates the end of a line or ring.
stream.polygonStart - 表示多边形的起点。
¥stream.polygonStart - indicates the start of a polygon.
stream.polygonEnd - 表示多边形的终点。
¥stream.polygonEnd - indicates the end of a polygon.
stream.sphere - 表示球体。
¥stream.sphere - indicates the sphere.
球面形状
d3.geoGraticule - 创建一个网格生成器。
¥d3.geoGraticule - create a graticule generator.
graticule - 生成由经线和纬线组成的多线串。
¥graticule - generate a MultiLineString of meridians and parallels.
graticule.lines - 生成一个由经线和纬线组成的 LineString 数组。
¥graticule.lines - generate an array of LineStrings of meridians and parallels.
graticule.outline - 生成经纬网范围的多边形。
¥graticule.outline - generate a Polygon of the graticule’s extent.
graticule.extent - 获取或设置主要和次要范围。
¥graticule.extent - get or set the major & minor extents.
graticule.extentMajor - 获取或设置主要范围。
¥graticule.extentMajor - get or set the major extent.
graticule.extentMinor - 获取或设置次要范围。
¥graticule.extentMinor - get or set the minor extent.
graticule.step - 获取或设置主要和次要步长间隔。
¥graticule.step - get or set the major & minor step intervals.
graticule.stepMajor - 获取或设置主要步长间隔。
¥graticule.stepMajor - get or set the major step intervals.
graticule.stepMinor - 获取或设置小步长间隔。
¥graticule.stepMinor - get or set the minor step intervals.
graticule.precision - 获取或设置纬度精度。
¥graticule.precision - get or set the latitudinal precision.
d3.geoGraticule10 - 生成默认的 10° 全局经纬网。
¥d3.geoGraticule10 - generate the default 10° global graticule.
d3.geoCircle - 创建圆形生成器。
¥d3.geoCircle - create a circle generator.
circle - 生成一个分段圆作为多边形。
¥circle - generate a piecewise circle as a Polygon.
circle.center - 指定圆心(以经纬度为单位)。
¥circle.center - specify the circle center in latitude and longitude.
circle.radius - 指定角半径(以度为单位)。
¥circle.radius - specify the angular radius in degrees.
circle.precision - 指定分段圆的精度。
¥circle.precision - specify the precision of the piecewise circle.
球面数学
d3.geoArea - 计算给定特性的球面面积。
¥d3.geoArea - compute the spherical area of a given feature.
d3.geoBounds - 计算给定要素的经纬度边界框。
¥d3.geoBounds - compute the latitude-longitude bounding box for a given feature.
d3.geoCentroid - 计算给定特性的球面质心。
¥d3.geoCentroid - compute the spherical centroid of a given feature.
d3.geoDistance - 计算两点之间的大弧距离。
¥d3.geoDistance - compute the great-arc distance between two points.
d3.geoLength - 计算线串的长度或多边形的周长。
¥d3.geoLength - compute the length of a line string or the perimeter of a polygon.
d3.geoInterpolate - 沿大圆弧在两点之间插值。
¥d3.geoInterpolate - interpolate between two points along a great arc.
d3.geoContains - 测试一个点是否位于给定要素内。
¥d3.geoContains - test whether a point is inside a given feature.
d3.geoRotation - 创建一个指定角度的旋转函数。
¥d3.geoRotation - create a rotation function for the specified angles.
d3-hierarchy
用于可视化分层数据的布局算法。
¥Layout algorithms for visualizing hierarchical data.
d3.hierarchy - 根据层次结构数据构造根节点。
¥d3.hierarchy - constructs a root node from hierarchical data.
node.ancestors - 生成祖级数组。
¥node.ancestors - generate an array of ancestors.
node.descendants - 生成后代数组。
¥node.descendants - generate an array of descendants.
node.leaves - 生成叶子数组。
¥node.leaves - generate an array of leaves.
node.find - 在层次结构中查找节点。
¥node.find - find a node in the hierarchy.
node.path - 生成到另一个节点的最短路径。
¥node.path - generate the shortest path to another node.
node.links - 生成链接数组。
¥node.links - generate an array of links.
node.sum - 评估并汇总定量值。
¥node.sum - evaluate and aggregate quantitative values.
node.count - 计算叶子节点的数量。
¥node.count - count the number of leaves.
node.sort - 对所有后代兄弟元素进行排序。
¥node.sort - sort all descendant siblings.
node[Symbol.iterator] - 在层次结构中迭代。
¥node[Symbol.iterator] - iterate on a hierarchy.
node.each - 广度优先遍历。
¥node.each - breadth-first traversal.
node.eachAfter - 后序遍历。
¥node.eachAfter - post-order traversal.
node.eachBefore - 前序遍历。
¥node.eachBefore - pre-order traversal.
node.copy - 复制层次结构。
¥node.copy - copy a hierarchy.
d3.stratify - 创建一个新的分层运算符。
¥d3.stratify - create a new stratify operator.
stratify - 根据表格数据构造根节点。
¥stratify - construct a root node from tabular data.
stratify.id - 设置节点 ID 访问器。
¥stratify.id - set the node id accessor.
stratify.parentId - 设置父节点 ID 访问器。
¥stratify.parentId - set the parent node id accessor.
stratify.path - 设置路径访问器。
¥stratify.path - set the path accessor.
d3.cluster - 创建一个新的簇(树状图)布局。
¥d3.cluster - create a new cluster (dendrogram) layout.
cluster - 将指定的层次结构布局为树状图。
¥cluster - layout the specified hierarchy in a dendrogram.
cluster.size - 设置布局大小。
¥cluster.size - set the layout size.
cluster.nodeSize - 设置节点大小。
¥cluster.nodeSize - set the node size.
cluster.separation - 设置叶子之间的间隔。
¥cluster.separation - set the separation between leaves.
d3.tree - 创建一个新的整洁树布局。
¥d3.tree - create a new tidy tree layout.
tree - 将指定的层次结构布局为整齐树。
¥tree - layout the specified hierarchy in a tidy tree.
tree.size - 设置布局大小。
¥tree.size - set the layout size.
tree.nodeSize - 设置节点大小。
¥tree.nodeSize - set the node size.
tree.separation - 设置节点之间的间隔。
¥tree.separation - set the separation between nodes.
d3.treemap - 创建一个新的树形图布局。
¥d3.treemap - create a new treemap layout.
treemap - 将指定的层次结构布局为树形图。
¥treemap - layout the specified hierarchy as a treemap.
treemap.tile - 设置平铺方法。
¥treemap.tile - set the tiling method.
treemap.size - 设置布局大小。
¥treemap.size - set the layout size.
treemap.round - 设置输出坐标是否四舍五入。
¥treemap.round - set whether the output coordinates are rounded.
treemap.padding - 设置填充。
¥treemap.padding - set the padding.
treemap.paddingInner - 设置兄弟级之间的填充。
¥treemap.paddingInner - set the padding between siblings.
treemap.paddingOuter - 设置父级与子级之间的填充。
¥treemap.paddingOuter - set the padding between parent and children.
treemap.paddingTop - 设置父节点上边缘与子节点之间的填充。
¥treemap.paddingTop - set the padding between the parent’s top edge and children.
treemap.paddingRight - 设置父节点右边缘与子节点之间的填充。
¥treemap.paddingRight - set the padding between the parent’s right edge and children.
treemap.paddingBottom - 设置父级底边与子级之间的填充。
¥treemap.paddingBottom - set the padding between the parent’s bottom edge and children.
treemap.paddingLeft - 设置父级左边与子级之间的填充。
¥treemap.paddingLeft - set the padding between the parent’s left edge and children.
d3.treemapBinary - 使用平衡二叉树平铺。
¥d3.treemapBinary - tile using a balanced binary tree.
d3.treemapDice - 平铺成水平行。
¥d3.treemapDice - tile into a horizontal row.
d3.treemapSlice - 平铺成垂直列。
¥d3.treemapSlice - tile into a vertical column.
d3.treemapSliceDice - 在切片和切块之间交替。
¥d3.treemapSliceDice - alternate between slicing and dicing.
d3.treemapSquarify - 使用 Bruls 等人提出的方格行平铺。al.
¥d3.treemapSquarify - tile using squarified rows per Bruls et. al.
d3.treemapResquarify - 类似 d3.treemapSquarify,但执行稳定更新。
¥d3.treemapResquarify - like d3.treemapSquarify, but performs stable updates.
squarify.ratio - 设置所需的矩形宽高比。
¥squarify.ratio - set the desired rectangle aspect ratio.
d3.partition - 创建一个新的分区(冰柱或旭日形)布局。
¥d3.partition - create a new partition (icicle or sunburst) layout.
partition - 将指定的层次结构布局为分区图。
¥partition - layout the specified hierarchy as a partition diagram.
partition.size - 设置布局大小。
¥partition.size - set the layout size.
partition.round - 设置输出坐标是否四舍五入。
¥partition.round - set whether the output coordinates are rounded.
partition.padding - 设置填充。
¥partition.padding - set the padding.
d3.pack - 创建一个新的圆形填充布局。
¥d3.pack - create a new circle-packing layout.
pack - 使用圆填充布局指定的层次结构。
¥pack - layout the specified hierarchy using circle-packing.
pack.radius - 设置半径访问器。
¥pack.radius - set the radius accessor.
pack.size - 设置布局大小。
¥pack.size - set the layout size.
pack.padding - 设置填充。
¥pack.padding - set the padding.
d3.packSiblings - 打包指定的圆形数组。
¥d3.packSiblings - pack the specified array of circles.
d3.packEnclose - 包含指定的圆形数组。
¥d3.packEnclose - enclose the specified array of circles.
d3-interpolate
插值数字、颜色、字符串、数组、对象等等!
¥Interpolate numbers, colors, strings, arrays, objects, whatever!
值插值
d3.interpolate - 插入任意值。
¥d3.interpolate - interpolate arbitrary values.
d3.interpolateNumber - 插入数字。
¥d3.interpolateNumber - interpolate numbers.
d3.interpolateRound - 插入整数。
¥d3.interpolateRound - interpolate integers.
d3.interpolateString - 插入嵌入数字的字符串。
¥d3.interpolateString - interpolate strings with embedded numbers.
d3.interpolateDate - 插入日期。
¥d3.interpolateDate - interpolate dates.
d3.interpolateArray - 任意值数组插值。
¥d3.interpolateArray - interpolate arrays of arbitrary values.
d3.interpolateNumberArray - 插入数字数组。
¥d3.interpolateNumberArray - interpolate arrays of numbers.
d3.interpolateObject - 插入任意对象。
¥d3.interpolateObject - interpolate arbitrary objects.
d3.interpolateBasis - 通过一组值生成 B 样条曲线。
¥d3.interpolateBasis - generate a B-spline through a set of values.
d3.interpolateBasisClosed - 通过一组值生成闭合的 B 样条曲线。
¥d3.interpolateBasisClosed - generate a closed B-spline through a set of values.
d3.interpolateDiscrete - 根据一组值生成离散插值器。
¥d3.interpolateDiscrete - generate a discrete interpolator from a set of values.
d3.quantize - 根据插值器生成均匀分布的样本。
¥d3.quantize - generate uniformly-spaced samples from an interpolator.
d3.piecewise - 根据一组值生成分段线性插值器。
¥d3.piecewise - generate a piecewise linear interpolator from a set of values.
颜色插值
d3.interpolateRgb - 插入 RGB 颜色。
¥d3.interpolateRgb - interpolate RGB colors.
d3.interpolateRgbBasis - 通过一组颜色生成 B 样条曲线。
¥d3.interpolateRgbBasis - generate a B-spline through a set of colors.
d3.interpolateRgbBasisClosed - 通过一组颜色生成闭合的 B 样条曲线。
¥d3.interpolateRgbBasisClosed - generate a closed B-spline through a set of colors.
d3.interpolateHsl - 插入 HSL 颜色。
¥d3.interpolateHsl - interpolate HSL colors.
d3.interpolateHslLong - HSL 颜色插值,方法长远。
¥d3.interpolateHslLong - interpolate HSL colors, the long way.
d3.interpolateLab - 插入 Lab 颜色。
¥d3.interpolateLab - interpolate Lab colors.
d3.interpolateHcl - 插入 HCL 颜色。
¥d3.interpolateHcl - interpolate HCL colors.
d3.interpolateHclLong - HCL 颜色插值,方法长远。
¥d3.interpolateHclLong - interpolate HCL colors, the long way.
d3.interpolateCubehelix - 插入 Cubehelix 颜色。
¥d3.interpolateCubehelix - interpolate Cubehelix colors.
d3.interpolateCubehelixLong - 插入 Cubehelix 颜色,这是漫长的路。
¥d3.interpolateCubehelixLong - interpolate Cubehelix colors, the long way.
interpolateColor.gamma - 在插值过程中应用伽玛校正。
¥interpolateColor.gamma - apply gamma correction during interpolation.
d3.interpolateHue - 插入色相角。
¥d3.interpolateHue - interpolate a hue angle.
变换插值
d3.interpolateTransformCss - 插入二维 CSS 变换。
¥d3.interpolateTransformCss - interpolate 2D CSS transforms.
d3.interpolateTransformSvg - 插入二维 SVG 变换。
¥d3.interpolateTransformSvg - interpolate 2D SVG transforms.
缩放插值
d3.interpolateZoom - 在两个视图之间缩放和平移。
¥d3.interpolateZoom - zoom and pan between two views.
interpolateZoom.rho - 设置缩放插值器的曲率 rho。
¥interpolateZoom.rho - set the curvature rho of the zoom interpolator.
d3-path
将 Canvas 路径命令序列化为 SVG。
¥Serialize Canvas path commands to SVG.
d3.path - 创建一个新的路径序列化器。
¥d3.path - create a new path serializer.
path.moveTo - 移动到给定点。
¥path.moveTo - move to the given point.
path.closePath - 关闭当前子路径。
¥path.closePath - close the current subpath.
path.lineTo - 绘制直线段。
¥path.lineTo - draw a straight line segment.
path.quadraticCurveTo - 绘制二次贝塞尔线段。
¥path.quadraticCurveTo - draw a quadratic Bézier segment.
path.bezierCurveTo - 绘制三次贝塞尔线段。
¥path.bezierCurveTo - draw a cubic Bézier segment.
path.arcTo - 绘制圆弧段。
¥path.arcTo - draw a circular arc segment.
path.arc - 绘制圆弧段。
¥path.arc - draw a circular arc segment.
path.rect - 绘制矩形。
¥path.rect - draw a rectangle.
path.toString - 序列化为 SVG 路径数据字符串。
¥path.toString - serialize to an SVG path data string.
d3.pathRound - 创建一个具有固定输出精度的新路径序列化器。
¥d3.pathRound - create a new path serializer with fixed output precision.
d3-polygon
二维多边形的几何运算。
¥Geometric operations for two-dimensional polygons.
d3.polygonArea - 计算给定多边形的面积。
¥d3.polygonArea - compute the area of the given polygon.
d3.polygonCentroid - 计算给定多边形的质心。
¥d3.polygonCentroid - compute the centroid of the given polygon.
d3.polygonHull - 计算给定点的凸包。
¥d3.polygonHull - compute the convex hull of the given points.
d3.polygonContains - 测试一个点是否位于多边形内。
¥d3.polygonContains - test whether a point is inside a polygon.
d3.polygonLength - 计算给定多边形的周长。
¥d3.polygonLength - compute the length of the given polygon’s perimeter.
d3-quadtree
二维递归空间细分。
¥Two-dimensional recursive spatial subdivision.
d3.quadtree - 创建一个新的空四叉树。
¥d3.quadtree - create a new, empty quadtree.
quadtree.x - 设置 x 访问器。
¥quadtree.x - set the x accessor.
quadtree.y - 设置 y 访问器。
¥quadtree.y - set the y accessor.
quadtree.extent - 扩展四叉树以覆盖一个范围。
¥quadtree.extent - extend the quadtree to cover an extent.
quadtree.cover - 扩展四叉树以覆盖一个点。
¥quadtree.cover - extend the quadtree to cover a point.
quadtree.add - 向四叉树添加一个基准面。
¥quadtree.add - add a datum to a quadtree.
quadtree.addAll - 向四叉树添加一个数据数组。
¥quadtree.addAll - add an array of data to a quadtree.
quadtree.remove - 从四叉树中移除一个数据。
¥quadtree.remove - remove a datum from a quadtree.
quadtree.removeAll - 从四叉树中移除一个数据数组。
¥quadtree.removeAll - remove an array of data from a quadtree.
quadtree.copy - 创建一个四叉树的副本。
¥quadtree.copy - create a copy of a quadtree.
quadtree.root - 获取四叉树的根节点。
¥quadtree.root - get the quadtree’s root node.
quadtree.data - 从四叉树中检索所有数据。
¥quadtree.data - retrieve all data from the quadtree.
quadtree.size - 计算四叉树中的数据数量。
¥quadtree.size - count the number of data in the quadtree.
quadtree.find - 快速在四叉树中查找最接近的数据。
¥quadtree.find - quickly find the closest datum in a quadtree.
quadtree.visit - 选择性地访问四叉树中的节点。
¥quadtree.visit - selectively visit nodes in a quadtree.
quadtree.visitAfter - 访问四叉树中的所有节点。
¥quadtree.visitAfter - visit all nodes in a quadtree.
d3-random
从各种分布中生成随机数。
¥Generate random numbers from various distributions.
d3.randomUniform - 来自均匀分布。
¥d3.randomUniform - from a uniform distribution.
d3.randomInt - 服从均匀整数分布。
¥d3.randomInt - from a uniform integer distribution.
d3.randomNormal - 来自正态分布。
¥d3.randomNormal - from a normal distribution.
d3.randomLogNormal - 来自对数正态分布。
¥d3.randomLogNormal - from a log-normal distribution.
d3.randomBates - 来自贝茨分布。
¥d3.randomBates - from a Bates distribution.
d3.randomIrwinHall - 来自欧文-霍尔分布。
¥d3.randomIrwinHall - from an Irwin–Hall distribution.
d3.randomExponential - 来自指数分布。
¥d3.randomExponential - from an exponential distribution.
d3.randomPareto - 来自帕累托分布。
¥d3.randomPareto - from a Pareto distribution.
d3.randomBernoulli - 来自伯努利分布。
¥d3.randomBernoulli - from a Bernoulli distribution.
d3.randomGeometric - 来自几何分布。
¥d3.randomGeometric - from a geometric distribution.
d3.randomBinomial - 来自二项分布。
¥d3.randomBinomial - from a binomial distribution.
d3.randomGamma - 来自伽马分布。
¥d3.randomGamma - from a gamma distribution.
d3.randomBeta - 来自β分布。
¥d3.randomBeta - from a beta distribution.
d3.randomWeibull - 服从威布尔分布、冈贝尔分布或弗雷歇分布。
¥d3.randomWeibull - from a Weibull, Gumbel or Fréchet distribution.
d3.randomCauchy - 来自柯西分布。
¥d3.randomCauchy - from a Cauchy distribution.
d3.randomLogistic - 来自逻辑斯蒂分布。
¥d3.randomLogistic - from a logistic distribution.
d3.randomPoisson - 来自泊松分布。
¥d3.randomPoisson - from a Poisson distribution.
random.source - 设置随机源。
¥random.source - set the source of randomness.
d3.randomLcg - 种子伪随机数生成器。
¥d3.randomLcg - a seeded pseudorandom number generator.
d3-scale
将抽象数据映射到可视化表示的编码。
¥Encodings that map abstract data to visual representation.
线性尺度
将连续的定量域映射到连续的范围。
¥Map a continuous, quantitative domain to a continuous range.
d3.scaleLinear - 创建一个定量线性尺度。
¥d3.scaleLinear - create a quantitative linear scale.
linear - 计算与给定域值对应的范围值。
¥linear - compute the range value corresponding to a given domain value.
linear.invert - 计算与给定范围值对应的域值。
¥linear.invert - compute the domain value corresponding to a given range value.
linear.domain - 设置输入域。
¥linear.domain - set the input domain.
linear.range - 设置输出范围。
¥linear.range - set the output range.
linear.rangeRound - 设置输出范围并启用舍入。
¥linear.rangeRound - set the output range and enable rounding.
linear.clamp - 启用限制到域或范围。
¥linear.clamp - enable clamping to the domain or range.
linear.unknown - 设置未知输入的输出值。
¥linear.unknown - set the output value for unknown inputs.
linear.interpolate - 设置输出插值器。
¥linear.interpolate - set the output interpolator.
linear.ticks - 计算定义域中的代表值。
¥linear.ticks - compute representative values from the domain.
linear.tickFormat - 格式化刻度以供人类使用。
¥linear.tickFormat - format ticks for human consumption.
linear.nice - 将范围扩展为合适的整数。
¥linear.nice - extend the domain to nice round numbers.
linear.copy - 创建此比例尺的副本。
¥linear.copy - create a copy of this scale.
d3.tickFormat - 格式化刻度以供人类使用。
¥d3.tickFormat - format ticks for human consumption.
d3.scaleIdentity - 创建一个恒等刻度。
¥d3.scaleIdentity - creates an identity scale.
d3.scaleRadial - 创建一个径向刻度。
¥d3.scaleRadial - creates a radial scale.
功率尺度
d3.scalePow - 创建一个定量幂尺度。
¥d3.scalePow - create a quantitative power scale.
d3.scaleSqrt - 创建一个指数为 0.5 的定量幂尺度。
¥d3.scaleSqrt - create a quantitative power scale with exponent 0.5.
pow.exponent - 设置幂指数。
¥pow.exponent - set the power exponent.
对数尺度
d3.scaleLog - 创建一个定量对数尺度。
¥d3.scaleLog - create a quantitative logarithmic scale.
log.base - 设置对数底数。
¥log.base - set the logarithm base.
log.ticks - 计算定义域中的代表值。
¥log.ticks - compute representative values from the domain.
log.tickFormat - 格式化刻度以供人类使用。
¥log.tickFormat - format ticks for human consumption.
log.nice - 将范围扩展为合适的整数。
¥log.nice - extend the domain to nice round numbers.
Symlog 尺度
d3.scaleSymlog - 创建一个对称对数尺度。
¥d3.scaleSymlog - create a symmetric logarithmic scale.
symlog.constant - 设置符号对数尺度的常数。
¥symlog.constant - set the constant of a symlog scale.
时间尺度
d3.scaleTime - 为时间创建一个线性刻度。
¥d3.scaleTime - create a linear scale for time.
time.ticks - 计算定义域中的代表值。
¥time.ticks - compute representative values from the domain.
time.tickFormat - 格式化刻度以供人类使用。
¥time.tickFormat - format ticks for human consumption.
time.nice - 将范围扩展为合适的轮次。
¥time.nice - extend the domain to nice round times.
d3.scaleUtc - 为 UTC 创建一个线性刻度。
¥d3.scaleUtc - create a linear scale for UTC.
顺序尺度
将连续的定量域映射到连续的固定插值器。
¥Map a continuous, quantitative domain to a continuous, fixed interpolator.
d3.scaleSequential - 创建一个顺序刻度。
¥d3.scaleSequential - create a sequential scale.
sequential.interpolator - 设置比例尺的输出插值器。
¥sequential.interpolator - set the scale’s output interpolator.
sequential.range - 设置输出范围。
¥sequential.range - set the output range.
sequential.rangeRound - 设置输出范围并启用舍入。
¥sequential.rangeRound - set the output range and enable rounding.
d3.scaleSequentialLog - 创建一个对数序列刻度。
¥d3.scaleSequentialLog - create a logarithmic sequential scale.
d3.scaleSequentialPow - 创建一个幂序比例尺。
¥d3.scaleSequentialPow - create a power sequential scale.
d3.scaleSequentialSqrt - 创建一个指数为 0.5 的幂序比例尺。
¥d3.scaleSequentialSqrt - create a power sequential scale with exponent 0.5.
d3.scaleSequentialSymlog - 创建一个对称对数序列尺度。
¥d3.scaleSequentialSymlog - create a symmetric logarithmic sequential scale.
d3.scaleSequentialQuantile - 使用 p 分位数变换创建一个序列尺度。
¥d3.scaleSequentialQuantile - create a sequential scale using a p-quantile transform.
sequentialQuantile.quantiles - 返回比例尺的分位数。
¥sequentialQuantile.quantiles - return the scale’s quantiles.
发散尺度
将连续的定量域映射到连续的固定插值器。
¥Map a continuous, quantitative domain to a continuous, fixed interpolator.
d3.scaleDiverging - 创建发散比例。
¥d3.scaleDiverging - create a diverging scale.
diverging.interpolator - 设置比例尺的输出插值器。
¥diverging.interpolator - set the scale’s output interpolator.
diverging.range - 设置输出范围。
¥diverging.range - set the output range.
diverging.rangeRound - 设置输出范围并启用舍入。
¥diverging.rangeRound - set the output range and enable rounding.
d3.scaleDivergingLog - 创建一个发散对数比例尺。
¥d3.scaleDivergingLog - create a diverging logarithmic scale.
d3.scaleDivergingPow - 创建一个发散幂级数刻度。
¥d3.scaleDivergingPow - create a diverging power scale.
d3.scaleDivergingSqrt - 创建一个指数为 0.5 的发散幂级数刻度。
¥d3.scaleDivergingSqrt - create a diverging power scale with exponent 0.5.
d3.scaleDivergingSymlog - 创建一个发散对称对数刻度。
¥d3.scaleDivergingSymlog - create a diverging symmetric logarithmic scale.
量化尺度
将连续的定量域映射到离散的范围。
¥Map a continuous, quantitative domain to a discrete range.
d3.scaleQuantize - 创建一个均匀量化线性尺度。
¥d3.scaleQuantize - create a uniform quantizing linear scale.
quantize - 计算与给定域值对应的范围值。
¥quantize - compute the range value corresponding to a given domain value.
quantize.invertExtent - 计算与给定范围值对应的域值。
¥quantize.invertExtent - compute the domain values corresponding to a given range value.
quantize.domain - 设置输入域。
¥quantize.domain - set the input domain.
quantize.range - 设置输出范围。
¥quantize.range - set the output range.
quantize.thresholds - 返回域内计算出的阈值数组。
¥quantize.thresholds - return the array of computed thresholds within the domain.
quantize.copy - 创建此比例尺的副本。
¥quantize.copy - create a copy of this scale.
分位数尺度
d3.scaleQuantile - 创建一个分位数量化线性比例尺。
¥d3.scaleQuantile - create a quantile quantizing linear scale.
quantile - 计算与给定域值对应的范围值。
¥quantile - compute the range value corresponding to a given domain value.
quantile.invertExtent - 计算与给定范围值对应的域值。
¥quantile.invertExtent - compute the domain values corresponding to a given range value.
quantile.domain - 设置输入域。
¥quantile.domain - set the input domain.
quantile.range - 设置输出范围。
¥quantile.range - set the output range.
quantile.quantiles - 获取分位数阈值。
¥quantile.quantiles - get the quantile thresholds.
quantile.copy - 创建此比例尺的副本。
¥quantile.copy - create a copy of this scale.
阈值尺度
d3.scaleThreshold - 创建一个任意量化线性尺度。
¥d3.scaleThreshold - create an arbitrary quantizing linear scale.
threshold - 计算与给定域值对应的范围值。
¥threshold - compute the range value corresponding to a given domain value.
threshold.invertExtent - 计算与给定范围值对应的域值。
¥threshold.invertExtent - compute the domain values corresponding to a given range value.
threshold.domain - 设置输入域。
¥threshold.domain - set the input domain.
threshold.range - 设置输出范围。
¥threshold.range - set the output range.
threshold.copy - 创建此比例尺的副本。
¥threshold.copy - create a copy of this scale.
序数尺度
将离散域映射到离散的范围。
¥Map a discrete domain to a discrete range.
d3.scaleOrdinal - 创建一个序数刻度。
¥d3.scaleOrdinal - create an ordinal scale.
ordinal - 计算与给定域值对应的范围值。
¥ordinal - compute the range value corresponding to a given domain value.
ordinal.domain - 设置输入域。
¥ordinal.domain - set the input domain.
ordinal.range - 设置输出范围。
¥ordinal.range - set the output range.
ordinal.unknown - 设置未知输入的输出值。
¥ordinal.unknown - set the output value for unknown inputs.
ordinal.copy - 创建此比例尺的副本。
¥ordinal.copy - create a copy of this scale.
d3.scaleImplicit - 隐式域的特殊未知值。
¥d3.scaleImplicit - a special unknown value for implicit domains.
带尺度
d3.scaleBand - 创建一个序数带标度。
¥d3.scaleBand - create an ordinal band scale.
band - 计算与给定域值对应的带起点。
¥band - compute the band start corresponding to a given domain value.
band.domain - 设置输入域。
¥band.domain - set the input domain.
band.range - 设置输出范围。
¥band.range - set the output range.
band.rangeRound - 设置输出范围并启用舍入。
¥band.rangeRound - set the output range and enable rounding.
band.round - 启用舍入。
¥band.round - enable rounding.
band.paddingInner - 设置 band 之间的填充。
¥band.paddingInner - set padding between bands.
band.paddingOuter - 设置第一个和最后一个带区外部的填充。
¥band.paddingOuter - set padding outside the first and last bands.
band.padding - 设置带区外部和带区之间的填充。
¥band.padding - set padding outside and between bands.
band.align - 设置带区对齐方式(如果有额外空间)。
¥band.align - set band alignment, if there is extra space.
band.bandwidth - 获取每个条带的宽度。
¥band.bandwidth - get the width of each band.
band.step - 获取相邻条带起点之间的距离。
¥band.step - get the distance between the starts of adjacent bands.
band.copy - 创建此比例尺的副本。
¥band.copy - create a copy of this scale.
点尺度
d3.scalePoint - 创建一个序数点标度。
¥d3.scalePoint - create an ordinal point scale.
point - 计算与给定域值对应的点。
¥point - compute the point corresponding to a given domain value.
point.domain - 设置输入域。
¥point.domain - set the input domain.
point.range - 设置输出范围。
¥point.range - set the output range.
point.rangeRound - 设置输出范围并启用舍入。
¥point.rangeRound - set the output range and enable rounding.
point.round - 启用舍入。
¥point.round - enable rounding.
point.padding - 设置第一个点和最后一个点外部的填充。
¥point.padding - set padding outside the first and last point.
point.align - 设置点对齐方式(如果有额外空间)。
¥point.align - set point alignment, if there is extra space.
point.bandwidth - 返回零。
¥point.bandwidth - returns zero.
point.step - 获取相邻点起点之间的距离。
¥point.step - get the distance between the starts of adjacent points.
point.copy - 创建此比例尺的副本。
¥point.copy - create a copy of this scale.
d3-scale-chromatic
用于定量、序数和分类比例的色带和调色板。
¥Color ramps and palettes for quantitative, ordinal and categorical scales.
分类分布
d3.schemeCategory10 - 十种分类颜色数组。
¥d3.schemeCategory10 - an array of ten categorical colors.
d3.schemeAccent - 八种分类颜色数组。
¥d3.schemeAccent - an array of eight categorical colors.
d3.schemeDark2 - 八种分类颜色数组。
¥d3.schemeDark2 - an array of eight categorical colors.
d3.schemeObservable10 - 十种分类颜色数组。
¥d3.schemeObservable10 - an array of ten categorical colors.
d3.schemePaired - 十二种分类颜色数组。
¥d3.schemePaired - an array of twelve categorical colors.
d3.schemePastel1 - 九种分类颜色数组。
¥d3.schemePastel1 - an array of nine categorical colors.
d3.schemePastel2 - 八种分类颜色数组。
¥d3.schemePastel2 - an array of eight categorical colors.
d3.schemeSet1 - 九种分类颜色数组。
¥d3.schemeSet1 - an array of nine categorical colors.
d3.schemeSet2 - 八种分类颜色数组。
¥d3.schemeSet2 - an array of eight categorical colors.
d3.schemeSet3 - 十二种分类颜色数组。
¥d3.schemeSet3 - an array of twelve categorical colors.
d3.schemeTableau10 - 十种分类颜色数组。
¥d3.schemeTableau10 - an array of ten categorical colors.
周期性
d3.interpolateRainbow - “柔和”彩虹
¥d3.interpolateRainbow - the “less-angry” rainbow
d3.interpolateSinebow - “正弦弓”平滑彩虹
¥d3.interpolateSinebow - the “sinebow” smooth rainbow
发散分布
d3.interpolateBrBG - ColorBrewer BrBG 插值器。
¥d3.interpolateBrBG - ColorBrewer BrBG interpolator.
d3.interpolatePiYG - ColorBrewer PiYG 插值器。
¥d3.interpolatePiYG - ColorBrewer PiYG interpolator.
d3.interpolatePRGn - ColorBrewer PRGn 插值器。
¥d3.interpolatePRGn - ColorBrewer PRGn interpolator.
d3.interpolatePuOr - ColorBrewer PuOr 插值器。
¥d3.interpolatePuOr - ColorBrewer PuOr interpolator.
d3.interpolateRdBu - ColorBrewer RdBu 插值器。
¥d3.interpolateRdBu - ColorBrewer RdBu interpolator.
d3.interpolateRdGy - ColorBrewer RdGy 插值器。
¥d3.interpolateRdGy - ColorBrewer RdGy interpolator.
d3.interpolateRdYlBu - ColorBrewer RdYlBu 插值器。
¥d3.interpolateRdYlBu - ColorBrewer RdYlBu interpolator.
d3.interpolateRdYlGn - ColorBrewer RdYlGn 插值器。
¥d3.interpolateRdYlGn - ColorBrewer RdYlGn interpolator.
d3.interpolateSpectral - ColorBrewer 光谱插值器。
¥d3.interpolateSpectral - ColorBrewer spectral interpolator.
d3.schemeBrBG - ColorBrewer BrBG 方案。
¥d3.schemeBrBG - ColorBrewer BrBG scheme.
d3.schemePiYG - ColorBrewer PiYG 方案。
¥d3.schemePiYG - ColorBrewer PiYG scheme.
d3.schemePRGn - ColorBrewer PRGn 方案。
¥d3.schemePRGn - ColorBrewer PRGn scheme.
d3.schemePuOr - ColorBrewer PuOr 方案。
¥d3.schemePuOr - ColorBrewer PuOr scheme.
d3.schemeRdBu - ColorBrewer RdBu 方案。
¥d3.schemeRdBu - ColorBrewer RdBu scheme.
d3.schemeRdGy - ColorBrewer RdGy 方案。
¥d3.schemeRdGy - ColorBrewer RdGy scheme.
d3.schemeRdYlBu - ColorBrewer RdYlBu 方案。
¥d3.schemeRdYlBu - ColorBrewer RdYlBu scheme.
d3.schemeRdYlGn - ColorBrewer RdYlGn 方案。
¥d3.schemeRdYlGn - ColorBrewer RdYlGn scheme.
d3.schemeSpectral - ColorBrewer 光谱方案。
¥d3.schemeSpectral - ColorBrewer spectral scheme.
顺序
d3.interpolateBuGn - ColorBrewer BuGn 插值器。
¥d3.interpolateBuGn - ColorBrewer BuGn interpolator.
d3.interpolateBuPu - ColorBrewer BuPu 插值器。
¥d3.interpolateBuPu - ColorBrewer BuPu interpolator.
d3.interpolateCividis - cividis 插值器。
¥d3.interpolateCividis - cividis interpolator.
d3.interpolateCool - 酷炫的插值器。
¥d3.interpolateCool - cool interpolator.
d3.interpolateCubehelixDefault - 立方体螺旋插值器。
¥d3.interpolateCubehelixDefault - cubehelix interpolator.
d3.interpolateGnBu - ColorBrewer GnBu 插值器。
¥d3.interpolateGnBu - ColorBrewer GnBu interpolator.
d3.interpolateInferno - 地狱插值器。
¥d3.interpolateInferno - inferno interpolator.
d3.interpolateMagma - magma 插值器。
¥d3.interpolateMagma - magma interpolator.
d3.interpolateOrRd - ColorBrewer OrRd 插值器。
¥d3.interpolateOrRd - ColorBrewer OrRd interpolator.
d3.interpolatePlasma - 等离子插值器。
¥d3.interpolatePlasma - plasma interpolator.
d3.interpolatePuBu - ColorBrewer PuBu 插值器。
¥d3.interpolatePuBu - ColorBrewer PuBu interpolator.
d3.interpolatePuBuGn - ColorBrewer PuBuGn 插值器。
¥d3.interpolatePuBuGn - ColorBrewer PuBuGn interpolator.
d3.interpolatePuRd - ColorBrewer PuRd 插值器。
¥d3.interpolatePuRd - ColorBrewer PuRd interpolator.
d3.interpolateRdPu - ColorBrewer RdPu 插值器。
¥d3.interpolateRdPu - ColorBrewer RdPu interpolator.
d3.interpolateTurbo - 涡轮插值器。
¥d3.interpolateTurbo - turbo interpolator.
d3.interpolateViridis - viridis 插值器。
¥d3.interpolateViridis - viridis interpolator.
d3.interpolateWarm - warm 插值器。
¥d3.interpolateWarm - warm interpolator.
d3.interpolateYlGn - ColorBrewer YlGn 插值器。
¥d3.interpolateYlGn - ColorBrewer YlGn interpolator.
d3.interpolateYlGnBu - ColorBrewer YlGnBu 插值器。
¥d3.interpolateYlGnBu - ColorBrewer YlGnBu interpolator.
d3.interpolateYlOrBr - ColorBrewer YlOrBr 插值器。
¥d3.interpolateYlOrBr - ColorBrewer YlOrBr interpolator.
d3.interpolateYlOrRd - ColorBrewer YlOrRd 插值器。
¥d3.interpolateYlOrRd - ColorBrewer YlOrRd interpolator.
d3.schemeBuGn - ColorBrewer BuGn 方案。
¥d3.schemeBuGn - ColorBrewer BuGn scheme.
d3.schemeBuPu - ColorBrewer BuPu 方案。
¥d3.schemeBuPu - ColorBrewer BuPu scheme.
d3.schemeGnBu - ColorBrewer GnBu 方案。
¥d3.schemeGnBu - ColorBrewer GnBu scheme.
d3.schemeOrRd - ColorBrewer OrRd 方案。
¥d3.schemeOrRd - ColorBrewer OrRd scheme.
d3.schemePuBu - ColorBrewer PuBu 方案。
¥d3.schemePuBu - ColorBrewer PuBu scheme.
d3.schemePuBuGn - ColorBrewer PuBuGn 方案。
¥d3.schemePuBuGn - ColorBrewer PuBuGn scheme.
d3.schemePuRd - ColorBrewer PuRd 方案。
¥d3.schemePuRd - ColorBrewer PuRd scheme.
d3.schemeRdPu - ColorBrewer RdPu 方案。
¥d3.schemeRdPu - ColorBrewer RdPu scheme.
d3.schemeYlGn - ColorBrewer YlGn 方案。
¥d3.schemeYlGn - ColorBrewer YlGn scheme.
d3.schemeYlGnBu - ColorBrewer YlGnBu 方案。
¥d3.schemeYlGnBu - ColorBrewer YlGnBu scheme.
d3.schemeYlOrBr - ColorBrewer YlOrBr 方案。
¥d3.schemeYlOrBr - ColorBrewer YlOrBr scheme.
d3.schemeYlOrRd - ColorBrewer YlOrRd 方案。
¥d3.schemeYlOrRd - ColorBrewer YlOrRd scheme.
d3-selection
Transform the DOM by selecting elements and joining to data.
选择元素
d3.selection - 选择根文档元素。
¥d3.selection - select the root document element.
d3.select - 从文档中选择一个元素。
¥d3.select - select an element from the document.
d3.selectAll - 从文档中选择多个元素。
¥d3.selectAll - select multiple elements from the document.
selection.select - 为每个选定元素选择一个后代元素。
¥selection.select - select a descendant element for each selected element.
selection.selectAll - 为每个选定元素选择多个后代元素。
¥selection.selectAll - select multiple descendants for each selected element.
selection.filter - 根据数据过滤元素。
¥selection.filter - filter elements based on data.
selection.merge - 将此选择与另一个选择合并。
¥selection.merge - merge this selection with another.
selection.selectChild - 为每个选定元素选择一个子元素。
¥selection.selectChild - select a child element for each selected element.
selection.selectChildren - 为每个选定元素选择子元素。
¥selection.selectChildren - select the children elements for each selected element.
selection.selection - 返回选择。
¥selection.selection - return the selection.
d3.matcher - 测试一个元素是否与选择器匹配。
¥d3.matcher - test whether an element matches a selector.
d3.selector - 选择一个元素。
¥d3.selector - select an element.
d3.selectorAll - 选择元素。
¥d3.selectorAll - select elements.
d3.window - 获取节点的所有者窗口。
¥d3.window - get a node’s owner window.
d3.style - 获取节点的当前样式值。
¥d3.style - get a node’s current style value.
修改元素
selection.attr - 获取或设置属性。
¥selection.attr - get or set an attribute.
selection.classed - 获取、添加或删除 CSS 类。
¥selection.classed - get, add or remove CSS classes.
selection.style - 获取或设置样式属性。
¥selection.style - get or set a style property.
selection.property - 获取或设置(原始)属性。
¥selection.property - get or set a (raw) property.
selection.text - 获取或设置文本内容。
¥selection.text - get or set the text content.
selection.html - 获取或设置内部 HTML。
¥selection.html - get or set the inner HTML.
selection.append - 创建、追加和选择新元素。
¥selection.append - create, append and select new elements.
selection.insert - 创建、插入和选择新元素。
¥selection.insert - create, insert and select new elements.
selection.remove - 从文档中移除元素。
¥selection.remove - remove elements from the document.
selection.clone - 插入选定元素的克隆。
¥selection.clone - insert clones of selected elements.
selection.sort - 根据数据对文档中的元素进行排序。
¥selection.sort - sort elements in the document based on data.
selection.order - 重新排序文档中的元素以匹配选择。
¥selection.order - reorders elements in the document to match the selection.
selection.raise - 将每个元素重新排序为其父元素的最后一个子元素。
¥selection.raise - reorders each element as the last child of its parent.
selection.lower - 将每个元素重新排序为其父元素的第一个子元素。
¥selection.lower - reorders each element as the first child of its parent.
d3.create - 创建并选择一个分离元素。
¥d3.create - create and select a detached element.
d3.creator - 按名称创建一个元素。
¥d3.creator - create an element by name.
连接数据
selection.data - 将元素绑定到数据。
¥selection.data - bind elements to data.
selection.join - 根据数据进入、更新或退出元素。
¥selection.join - enter, update or exit elements based on data.
selection.enter - 获取进入选择(数据缺少元素)。
¥selection.enter - get the enter selection (data missing elements).
selection.exit - 获取退出选择(元素缺少数据)。
¥selection.exit - get the exit selection (elements missing data).
selection.datum - 获取或设置元素数据(无需连接)。
¥selection.datum - get or set element data (without joining).
处理事件
selection.on - 添加或删除事件监听器。
¥selection.on - add or remove event listeners.
selection.dispatch - 发送自定义事件。
¥selection.dispatch - dispatch a custom event.
d3.pointer - 获取事件指针的位置。
¥d3.pointer - get the pointer’s position of an event.
d3.pointers - 获取事件指针的位置。
¥d3.pointers - get the pointers’ positions of an event.
控制流
selection.each - 为每个元素调用一个函数。
¥selection.each - call a function for each element.
selection.call - 使用此选择调用一个函数。
¥selection.call - call a function with this selection.
selection.empty - 如果此选择为空,则返回 true。
¥selection.empty - returns true if this selection is empty.
selection.nodes - 返回所有选定元素的数组。
¥selection.nodes - returns an array of all selected elements.
selection.node - 返回第一个(非空)元素。
¥selection.node - returns the first (non-null) element.
selection.size - 返回元素数量。
¥selection.size - returns the count of elements.
selection[Symbol.iterator] - 迭代选定的节点。
¥selection[Symbol.iterator] - iterate over the selection’s nodes.
局部变量
d3.local - 声明一个新的局部变量。
¥d3.local - declares a new local variable.
local.set - 设置局部变量的值。
¥local.set - set a local variable’s value.
local.get - 获取局部变量的值。
¥local.get - get a local variable’s value.
local.remove - 删除局部变量。
¥local.remove - delete a local variable.
local.toString - 获取局部变量的属性标识符。
¥local.toString - get the property identifier of a local variable.
命名空间
d3.namespace - 限定带前缀的 XML 名称,例如“xlink:href”。
¥d3.namespace - qualify a prefixed XML name, such as “xlink:href”.
d3.namespaces - 内置 XML 命名空间。
¥d3.namespaces - the built-in XML namespaces.
d3-shape
用于可视化的图形基元。
¥Graphical primitives for visualization.
圆弧
¥Arcs
圆形或环形扇区,例如饼图或甜甜圈图。
¥Circular or annular sectors, as in a pie or donut chart.
d3.arc - 创建一个新的弧生成器。
¥d3.arc - create a new arc generator.
arc - 为给定基准生成圆弧。
¥arc - generate an arc for the given datum.
arc.centroid - 计算圆弧的中点。
¥arc.centroid - compute an arc’s midpoint.
arc.innerRadius - 设置内半径。
¥arc.innerRadius - set the inner radius.
arc.outerRadius - 设置外半径。
¥arc.outerRadius - set the outer radius.
arc.cornerRadius - 设置圆角半径。
¥arc.cornerRadius - set the corner radius, for rounded corners.
arc.startAngle - 设置起始角度。
¥arc.startAngle - set the start angle.
arc.endAngle - 设置结束角度。
¥arc.endAngle - set the end angle.
arc.padAngle - 设置相邻圆弧之间的角度(对于填充圆弧)。
¥arc.padAngle - set the angle between adjacent arcs, for padded arcs.
arc.padRadius - 设置线性化填充的半径。
¥arc.padRadius - set the radius at which to linearize padding.
arc.context - 设置渲染上下文。
¥arc.context - set the rendering context.
arc.digits - 设置输出精度。
¥arc.digits - set the output precision.
饼图
¥Pies
计算将表格数据集表示为饼图或环形图所需的角度。
¥Compute the necessary angles to represent a tabular dataset as a pie or donut chart.
d3.pie - 创建一个新的饼图生成器。
¥d3.pie - create a new pie generator.
pie - 计算给定数据集的弧度。
¥pie - compute the arc angles for the given dataset.
pie.value - 设置值访问器。
¥pie.value - set the value accessor.
pie.sort - 设置排序顺序比较器。
¥pie.sort - set the sort order comparator.
pie.sortValues - 设置排序顺序比较器。
¥pie.sortValues - set the sort order comparator.
pie.startAngle - 设置整体起始角度。
¥pie.startAngle - set the overall start angle.
pie.endAngle - 设置整体结束角度。
¥pie.endAngle - set the overall end angle.
pie.padAngle - 设置相邻圆弧之间的填充角度。
¥pie.padAngle - set the pad angle between adjacent arcs.
直线
样条线或折线,例如折线图。
¥A spline or polyline, as in a line chart.
d3.line - 创建一个新的线生成器。
¥d3.line - create a new line generator.
line - 为给定数据集生成一条线。
¥line - generate a line for the given dataset.
line.x - 设置 x 访问器。
¥line.x - set the x accessor.
line.y - 设置 y 访问器。
¥line.y - set the y accessor.
line.defined - 设置定义的访问器。
¥line.defined - set the defined accessor.
line.curve - 设置曲线插值器。
¥line.curve - set the curve interpolator.
line.context - 设置渲染上下文。
¥line.context - set the rendering context.
line.digits - 设置输出精度。
¥line.digits - set the output precision.
d3.lineRadial - 创建一个新的径向线生成器。
¥d3.lineRadial - create a new radial line generator.
lineRadial - 为给定数据集生成一条线。
¥lineRadial - generate a line for the given dataset.
lineRadial.angle - 设置角度访问器。
¥lineRadial.angle - set the angle accessor.
lineRadial.radius - 设置半径访问器。
¥lineRadial.radius - set the radius accessor.
lineRadial.defined - 设置定义的访问器。
¥lineRadial.defined - set the defined accessor.
lineRadial.curve - 设置曲线插值器。
¥lineRadial.curve - set the curve interpolator.
lineRadial.context - 设置渲染上下文。
¥lineRadial.context - set the rendering context.
区域
一个区域,由边界顶线和基线定义,就像在面积图中一样。
¥An area, defined by a bounding topline and baseline, as in an area chart.
d3.area - 创建一个新的区域生成器。
¥d3.area - create a new area generator.
area - 为给定数据集生成区域。
¥area - generate an area for the given dataset.
area.x - 设置 x0 和 x1 访问器。
¥area.x - set the x0 and x1 accessors.
area.x0 - 设置基线 x 访问器。
¥area.x0 - set the baseline x accessor.
area.x1 - 设置顶线 x 访问器。
¥area.x1 - set the topline x accessor.
area.y - 设置 y0 和 y1 访问器。
¥area.y - set the y0 and y1 accessors.
area.y0 - 设置基线 y 访问器。
¥area.y0 - set the baseline y accessor.
area.y1 - 设置顶线 y 访问器。
¥area.y1 - set the topline y accessor.
area.defined - 设置定义的访问器。
¥area.defined - set the defined accessor.
area.curve - 设置曲线插值器。
¥area.curve - set the curve interpolator.
area.context - 设置渲染上下文。
¥area.context - set the rendering context.
area.digits - 设置输出精度。
¥area.digits - set the output precision.
area.lineX0 - 导出区域左边缘的线。
¥area.lineX0 - derive a line for the left edge of an area.
area.lineY0 - 绘制区域顶边缘的线。
¥area.lineY0 - derive a line for the top edge of an area.
area.lineX1 - 绘制区域右边缘的线。
¥area.lineX1 - derive a line for the right edge of an area.
area.lineY1 - 导出区域底部边缘的线。
¥area.lineY1 - derive a line for the bottom edge of an area.
d3.areaRadial - 创建一个新的径向区域生成器。
¥d3.areaRadial - create a new radial area generator.
areaRadial - 为给定数据集生成区域。
¥areaRadial - generate an area for the given dataset.
areaRadial.angle - 设置起始和结束角度访问器。
¥areaRadial.angle - set the start and end angle accessors.
areaRadial.startAngle - 设置起始角度访问器。
¥areaRadial.startAngle - set the start angle accessor.
areaRadial.endAngle - 设置结束角度访问器。
¥areaRadial.endAngle - set the end angle accessor.
areaRadial.radius - 设置内半径和外半径访问器。
¥areaRadial.radius - set the inner and outer radius accessors.
areaRadial.innerRadius - 设置内半径访问器。
¥areaRadial.innerRadius - set the inner radius accessor.
areaRadial.outerRadius - 设置外半径访问器。
¥areaRadial.outerRadius - set the outer radius accessor.
areaRadial.defined - 设置定义的访问器。
¥areaRadial.defined - set the defined accessor.
areaRadial.curve - 设置曲线插值器。
¥areaRadial.curve - set the curve interpolator.
areaRadial.context - 设置渲染上下文。
¥areaRadial.context - set the rendering context.
areaRadial.lineStartAngle - 绘制区域起始边缘的线。
¥areaRadial.lineStartAngle - derive a line for the start edge of an area.
areaRadial.lineInnerRadius - 导出区域内边缘的线。
¥areaRadial.lineInnerRadius - derive a line for the inner edge of an area.
areaRadial.lineEndAngle - 导出区域末端边缘的线。
¥areaRadial.lineEndAngle - derive a line for the end edge of an area.
areaRadial.lineOuterRadius - 绘制区域外边缘的线。
¥areaRadial.lineOuterRadius - derive a line for the outer edge of an area.
曲线
在点之间进行插值以生成连续的形状。
¥Interpolate between points to produce a continuous shape.
d3.curveBasis - 重复端点的三次基样条函数。
¥d3.curveBasis - a cubic basis spline, repeating the end points.
d3.curveBasisClosed - 闭三次基样条函数。
¥d3.curveBasisClosed - a closed cubic basis spline.
d3.curveBasisOpen - 三次基样条曲线。
¥d3.curveBasisOpen - a cubic basis spline.
d3.curveBundle - 拉直的三次基样条曲线。
¥d3.curveBundle - a straightened cubic basis spline.
bundle.beta - 设置束张力 beta。
¥bundle.beta - set the bundle tension beta.
d3.curveBumpX - 具有水平切线的三次 Bézier 样条函数。
¥d3.curveBumpX - a cubic Bézier spline with horizontal tangents.
d3.curveBumpY - 具有垂直切线的三次 Bézier 样条函数。
¥d3.curveBumpY - a cubic Bézier spline with vertical tangents.
d3.curveCardinal - 两端均为单侧差分的三次 Cardinal 样条函数。
¥d3.curveCardinal - a cubic cardinal spline, with one-sided difference at each end.
d3.curveCardinalClosed - 闭三次 Cardinal 样条函数。
¥d3.curveCardinalClosed - a closed cubic cardinal spline.
d3.curveCardinalOpen - 三次基数样条曲线。
¥d3.curveCardinalOpen - a cubic cardinal spline.
cardinal.tension - 设置基数样条张力。
¥cardinal.tension - set the cardinal spline tension.
d3.curveCatmullRom - 两端均为单侧差分的三次 Catmull-Rom 样条函数。
¥d3.curveCatmullRom - a cubic Catmull–Rom spline, with one-sided difference at each end.
d3.curveCatmullRomClosed - 闭三次 Catmull-Rom 样条函数。
¥d3.curveCatmullRomClosed - a closed cubic Catmull–Rom spline.
d3.curveCatmullRomOpen - 三次 Catmull-Rom 样条曲线。
¥d3.curveCatmullRomOpen - a cubic Catmull–Rom spline.
catmullRom.alpha - 设置 Catmull–Rom 参数 alpha。
¥catmullRom.alpha - set the Catmull–Rom parameter alpha.
d3.curveLinear - 折线。
¥d3.curveLinear - a polyline.
d3.curveLinearClosed - 闭合折线。
¥d3.curveLinearClosed - a closed polyline.
d3.curveMonotoneX - 在 x 轴上具有单调性,在 y 轴上也保持单调性的三次样条函数。
¥d3.curveMonotoneX - a cubic spline that, given monotonicity in x, preserves it in y.
d3.curveMonotoneY - 一条三次样条函数,给定 y 的单调性,则在 x 中保持该单调性。
¥d3.curveMonotoneY - a cubic spline that, given monotonicity in y, preserves it in x.
d3.curveNatural - 自然三次样条曲线。
¥d3.curveNatural - a natural cubic spline.
d3.curveStep - 分段常数函数。
¥d3.curveStep - a piecewise constant function.
d3.curveStepAfter - 分段常数函数。
¥d3.curveStepAfter - a piecewise constant function.
d3.curveStepBefore - 分段常数函数。
¥d3.curveStepBefore - a piecewise constant function.
curve.areaStart - 开始一个新的区域段。
¥curve.areaStart - start a new area segment.
curve.areaEnd - 结束当前区域段。
¥curve.areaEnd - end the current area segment.
curve.lineStart - 开始一个新的线段。
¥curve.lineStart - start a new line segment.
curve.lineEnd - 结束当前线段。
¥curve.lineEnd - end the current line segment.
curve.point - 向当前线段添加一个点。
¥curve.point - add a point to the current line segment.
链接
从源到目标的平滑三次贝塞尔曲线。
¥A smooth cubic Bézier curve from a source to a target.
d3.link - 创建一个新的链接生成器。
¥d3.link - create a new link generator.
d3.linkVertical - 创建一个新的垂直链接生成器。
¥d3.linkVertical - create a new vertical link generator.
d3.linkHorizontal - 创建一个新的水平链接生成器。
¥d3.linkHorizontal - create a new horizontal link generator.
link - 生成链接。
¥link - generate a link.
link.source - 设置源访问器。
¥link.source - set the source accessor.
link.target - 设置目标访问器。
¥link.target - set the target accessor.
link.x - 设置点 x 访问器。
¥link.x - set the point x-accessor.
link.y - 设置点 y 访问器。
¥link.y - set the point y-accessor.
link.context - 设置渲染上下文。
¥link.context - set the rendering context.
link.digits - 设置输出精度。
¥link.digits - set the output precision.
d3.linkRadial - 创建一个新的径向链接生成器。
¥d3.linkRadial - create a new radial link generator.
linkRadial.angle - 设置点角度访问器。
¥linkRadial.angle - set the point angle accessor.
linkRadial.radius - 设置点半径访问器。
¥linkRadial.radius - set the point radius accessor.
符号
分类形状编码,例如散点图。
¥A categorical shape encoding, as in a scatterplot.
d3.symbol - 创建一个新的符号生成器。
¥d3.symbol - create a new symbol generator.
symbol - 为给定基准生成符号。
¥symbol - generate a symbol for the given datum.
symbol.type - 设置符号类型。
¥symbol.type - set the symbol type.
symbol.size - 设置符号的大小(以方形像素为单位)。
¥symbol.size - set the size of the symbol in square pixels.
symbol.context - 设置渲染上下文。
¥symbol.context - set the rendering context.
symbol.digits - 设置输出精度。
¥symbol.digits - set the output precision.
d3.symbolsFill - 用于填充。
¥d3.symbolsFill - an array of built-in symbol types for filling.
d3.symbolsStroke - 用于描边的内置符号类型数组。
¥d3.symbolsStroke - an array of built-in symbol types for stroking.
d3.symbolAsterisk - 星号;用于描边。
¥d3.symbolAsterisk - an asterisk; for stroke.
d3.symbolCircle - 圆形;用于填充或描边。
¥d3.symbolCircle - a circle; for fill or stroke.
d3.symbolCross - 等长希腊十字;用于填充。
¥d3.symbolCross - a Greek cross with arms of equal length; for fill.
d3.symbolDiamond - 菱形;用于填充。
¥d3.symbolDiamond - a rhombus; for fill.
d3.symbolDiamond2 - 旋转正方形;用于描边。
¥d3.symbolDiamond2 - a rotated square; for stroke.
d3.symbolPlus - 加号;用于描边。
¥d3.symbolPlus - a plus sign; for stroke.
d3.symbolSquare - 一个正方形;用于填充。
¥d3.symbolSquare - a square; for fill.
d3.symbolSquare2 - 一个正方形;用于描边。
¥d3.symbolSquare2 - a square; for stroke.
d3.symbolStar - 五角星(五角星形);用于填充。
¥d3.symbolStar - a pentagonal star (pentagram); for fill.
d3.symbolTriangle - 向上的三角形;用于填充。
¥d3.symbolTriangle - an up-pointing triangle; for fill.
d3.symbolTriangle2 - 向上的三角形;用于描边。
¥d3.symbolTriangle2 - an up-pointing triangle; for stroke.
d3.symbolWye - Y 形;用于填充。
¥d3.symbolWye - a Y shape; for fill.
d3.pointRadial - 给定角度和半径,获取点的相对坐标。
¥d3.pointRadial - relative coordinates of a point given an angle and radius.
symbolType.draw - 将此符号绘制到给定的上下文中。
¥symbolType.draw - draw this symbol to the given context.
堆栈
堆叠形状,将一个形状相邻放置,就像堆叠条形图一样。
¥Stack shapes, placing one adjacent to another, as in a stacked bar chart.
d3.stack - 创建一个新的堆栈生成器。
¥d3.stack - create a new stack generator.
stack - 为给定数据集生成堆栈。
¥stack - generate a stack for the given dataset.
stack.keys - 设置键访问器。
¥stack.keys - set the keys accessor.
stack.value - 设置值访问器。
¥stack.value - set the value accessor.
stack.order - 设置顺序访问器。
¥stack.order - set the order accessor.
stack.offset - 设置偏移访问器。
¥stack.offset - set the offset accessor.
d3.stackOrderAppearance - 将最早的序列放在底部。
¥d3.stackOrderAppearance - put the earliest series on bottom.
d3.stackOrderAscending - 将最小的序列放在底部。
¥d3.stackOrderAscending - put the smallest series on bottom.
d3.stackOrderDescending - 将最大的序列放在底部。
¥d3.stackOrderDescending - put the largest series on bottom.
d3.stackOrderInsideOut - 将较早的序列放在中间。
¥d3.stackOrderInsideOut - put earlier series in the middle.
d3.stackOrderNone - 使用给定的序列顺序。
¥d3.stackOrderNone - use the given series order.
d3.stackOrderReverse - 使用给定序列顺序的逆序。
¥d3.stackOrderReverse - use the reverse of the given series order.
d3.stackOffsetExpand - 将基线规范化为零,将顶线规范化为一。
¥d3.stackOffsetExpand - normalize the baseline to zero and topline to one.
d3.stackOffsetDiverging - 大于零的正值;小于零的负值。
¥d3.stackOffsetDiverging - positive above zero; negative below zero.
d3.stackOffsetNone - 应用零基线。
¥d3.stackOffsetNone - apply a zero baseline.
d3.stackOffsetSilhouette - 将流图的中心设为零。
¥d3.stackOffsetSilhouette - center the streamgraph around zero.
d3.stackOffsetWiggle - 最小化流图抖动。
¥d3.stackOffsetWiggle - minimize streamgraph wiggling.
d3-time
一个用于计算人类特殊时间约定的计算器。
¥A calculator for humanity’s peculiar conventions of time.
d3.timeInterval - 实现一个新的自定义时间间隔。
¥d3.timeInterval - implement a new custom time interval.
interval - interval.floor 的别名。
¥interval - alias for interval.floor.
interval.floor - 向下舍入到最近的边界。
¥interval.floor - round down to the nearest boundary.
interval.round - 舍入到最近的边界。
¥interval.round - round to the nearest boundary.
interval.ceil - 向上舍入到最近的边界。
¥interval.ceil - round up to the nearest boundary.
interval.offset - 将日期偏移一定数量的间隔。
¥interval.offset - offset a date by some number of intervals.
interval.range - 生成一系列按间隔边界的日期。
¥interval.range - generate a range of dates at interval boundaries.
interval.filter - 创建此间隔的滤波子集。
¥interval.filter - create a filtered subset of this interval.
interval.every - 创建此间隔的滤波子集。
¥interval.every - create a filtered subset of this interval.
interval.count - 计算两个日期之间的间隔边界。
¥interval.count - count interval boundaries between two dates.
d3.timeMillisecond - 毫秒间隔,当地时间。
¥d3.timeMillisecond - the millisecond interval, local time.
d3.timeSecond - 第二个间隔,当地时间。
¥d3.timeSecond - the second interval, local time.
d3.timeMinute - 分钟间隔,当地时间。
¥d3.timeMinute - the minute interval, local time.
d3.timeHour - 小时间隔,当地时间。
¥d3.timeHour - the hour interval, local time.
d3.timeDay - 日期间隔,本地时间。
¥d3.timeDay - the day interval, local time.
d3.timeWeek - 基于周日的周间隔,当地时间。
¥d3.timeWeek - the Sunday-based week interval, local time.
d3.timeSunday - 基于周日的周间隔,当地时间。
¥d3.timeSunday - the Sunday-based week interval, local time.
d3.timeMonday - 基于周一的周间隔,当地时间。
¥d3.timeMonday - the Monday-based week interval, local time.
d3.timeTuesday - 基于周二的周间隔,当地时间。
¥d3.timeTuesday - the Tuesday-based week interval, local time.
d3.timeWednesday - 基于周三的周间隔,当地时间。
¥d3.timeWednesday - the Wednesday-based week interval, local time.
d3.timeThursday - 基于周四的周间隔,当地时间。
¥d3.timeThursday - the Thursday-based week interval, local time.
d3.timeFriday - 基于周五的周间隔,当地时间。
¥d3.timeFriday - the Friday-based week interval, local time.
d3.timeSaturday - 基于周六的周间隔,当地时间。
¥d3.timeSaturday - the Saturday-based week interval, local time.
d3.timeMonth - 月份间隔,当地时间。
¥d3.timeMonth - the month interval, local time.
d3.timeYear - 年份间隔,当地时间。
¥d3.timeYear - the year interval, local time.
d3.utcMillisecond - 毫秒间隔,UTC 时间。
¥d3.utcMillisecond - the millisecond interval, UTC time.
d3.utcSecond - 第二个间隔,UTC 时间。
¥d3.utcSecond - the second interval, UTC time.
d3.utcMinute - 分钟间隔,UTC 时间。
¥d3.utcMinute - the minute interval, UTC time.
d3.utcHour - 小时间隔,UTC 时间。
¥d3.utcHour - the hour interval, UTC time.
d3.utcDay - 日期间隔,UTC 时间。
¥d3.utcDay - the day interval, UTC time.
d3.utcWeek - 基于周日的周间隔,UTC 时间。
¥d3.utcWeek - the Sunday-based week interval, UTC time.
d3.utcSunday - 基于周日的周间隔,UTC 时间。
¥d3.utcSunday - the Sunday-based week interval, UTC time.
d3.utcMonday - 基于周一的周间隔,UTC 时间。
¥d3.utcMonday - the Monday-based week interval, UTC time.
d3.utcTuesday - 基于周二的周间隔,UTC 时间。
¥d3.utcTuesday - the Tuesday-based week interval, UTC time.
d3.utcWednesday - 基于周三的周间隔,UTC 时间。
¥d3.utcWednesday - the Wednesday-based week interval, UTC time.
d3.utcThursday - 基于周四的周间隔,UTC 时间。
¥d3.utcThursday - the Thursday-based week interval, UTC time.
d3.utcFriday - 基于周五的周间隔,UTC 时间。
¥d3.utcFriday - the Friday-based week interval, UTC time.
d3.utcSaturday - 基于周六的周间隔,UTC 时间。
¥d3.utcSaturday - the Saturday-based week interval, UTC time.
d3.utcMonth - 月份间隔,UTC 时间。
¥d3.utcMonth - the month interval, UTC time.
d3.utcYear - 年份间隔,UTC 时间。
¥d3.utcYear - the year interval, UTC time.
d3.unixDay - 日期间隔,UTC 时间,不按月份对齐。
¥d3.unixDay - the day interval, UTC time, not month-aligned.
d3.timeMilliseconds - d3.timeMillisecond.range 的别名。
¥d3.timeMilliseconds - alias for d3.timeMillisecond.range.
d3.timeSeconds - d3.timeSecond.range 的别名。
¥d3.timeSeconds - alias for d3.timeSecond.range.
d3.timeMinutes - d3.timeMinute.range 的别名。
¥d3.timeMinutes - alias for d3.timeMinute.range.
d3.timeHours - d3.timeHour.range 的别名。
¥d3.timeHours - alias for d3.timeHour.range.
d3.timeDays - d3.timeDay.range 的别名。
¥d3.timeDays - alias for d3.timeDay.range.
d3.timeWeeks - d3.timeWeek.range 的别名。
¥d3.timeWeeks - alias for d3.timeWeek.range.
d3.timeSundays - d3.timeSunday.range 的别名。
¥d3.timeSundays - alias for d3.timeSunday.range.
d3.timeMondays - d3.timeMonday.range 的别名。
¥d3.timeMondays - alias for d3.timeMonday.range.
d3.timeTuesdays - d3.timeTuesday.range 的别名。
¥d3.timeTuesdays - alias for d3.timeTuesday.range.
d3.timeWednesdays - d3.timeWednesday.range 的别名。
¥d3.timeWednesdays - alias for d3.timeWednesday.range.
d3.timeThursdays - d3.timeThursday.range 的别名。
¥d3.timeThursdays - alias for d3.timeThursday.range.
d3.timeFridays - d3.timeFriday.range 的别名。
¥d3.timeFridays - alias for d3.timeFriday.range.
d3.timeSaturdays - d3.timeSaturday.range 的别名。
¥d3.timeSaturdays - alias for d3.timeSaturday.range.
d3.timeMonths - d3.timeMonth.range 的别名。
¥d3.timeMonths - alias for d3.timeMonth.range.
d3.timeYears - d3.timeYear.range 的别名。
¥d3.timeYears - alias for d3.timeYear.range.
d3.utcMilliseconds - d3.utcMillisecond.range 的别名。
¥d3.utcMilliseconds - alias for d3.utcMillisecond.range.
d3.utcSeconds - d3.utcSecond.range 的别名。
¥d3.utcSeconds - alias for d3.utcSecond.range.
d3.utcMinutes - d3.utcMinute.range 的别名。
¥d3.utcMinutes - alias for d3.utcMinute.range.
d3.utcHours - d3.utcHour.range 的别名。
¥d3.utcHours - alias for d3.utcHour.range.
d3.utcDays - d3.utcDay.range 的别名。
¥d3.utcDays - alias for d3.utcDay.range.
d3.utcWeeks - d3.utcWeek.range 的别名。
¥d3.utcWeeks - alias for d3.utcWeek.range.
d3.utcSundays - d3.utcSunday.range 的别名。
¥d3.utcSundays - alias for d3.utcSunday.range.
d3.utcMondays - d3.utcMonday.range 的别名。
¥d3.utcMondays - alias for d3.utcMonday.range.
d3.utcTuesdays - d3.utcTuesday.range 的别名。
¥d3.utcTuesdays - alias for d3.utcTuesday.range.
d3.utcWednesdays - d3.utcWednesday.range 的别名。
¥d3.utcWednesdays - alias for d3.utcWednesday.range.
d3.utcThursdays - d3.utcThursday.range 的别名。
¥d3.utcThursdays - alias for d3.utcThursday.range.
d3.utcFridays - d3.utcFriday.range 的别名。
¥d3.utcFridays - alias for d3.utcFriday.range.
d3.utcSaturdays - d3.utcSaturday.range 的别名。
¥d3.utcSaturdays - alias for d3.utcSaturday.range.
d3.utcMonths - d3.utcMonth.range 的别名。
¥d3.utcMonths - alias for d3.utcMonth.range.
d3.utcYears - d3.utcYear.range 的别名。
¥d3.utcYears - alias for d3.utcYear.range.
d3.unixDays - d3.unixDay.range 的别名。
¥d3.unixDays - alias for d3.unixDay.range.
d3.timeTicks - 根据时间间隔生成代表值。
¥d3.timeTicks - generate representative values from a time interval.
d3.utcTicks - 根据时间间隔生成代表值。
¥d3.utcTicks - generate representative values from a time interval.
d3.timeTickInterval - 根据时间间隔生成代表值。
¥d3.timeTickInterval - generate representative values from a time interval.
d3.utcTickInterval - 根据时间间隔生成代表值。
¥d3.utcTickInterval - generate representative values from a time interval.
d3-time-format
解析和格式化时间,灵感来自 strptime 和 strftime。
¥Parse and format times, inspired by strptime and strftime.
d3.timeFormat - 默认语言环境下 locale.format 的别名。
¥d3.timeFormat - alias for locale.format on the default locale.
d3.timeParse - 默认语言环境下 locale.parse 的别名。
¥d3.timeParse - alias for locale.parse on the default locale.
d3.utcFormat - 默认语言环境下 locale.utcFormat 的别名。
¥d3.utcFormat - alias for locale.utcFormat on the default locale.
d3.utcParse - 默认语言环境下 locale.utcParse 的别名。
¥d3.utcParse - alias for locale.utcParse on the default locale.
d3.isoFormat - ISO 8601 UTC 格式化程序。
¥d3.isoFormat - an ISO 8601 UTC formatter.
d3.isoParse - ISO 8601 UTC 解析器。
¥d3.isoParse - an ISO 8601 UTC parser.
locale.format - 创建一个时间格式化程序。
¥locale.format - create a time formatter.
locale.parse - 创建一个时间解析器。
¥locale.parse - create a time parser.
locale.utcFormat - 创建 UTC 格式化程序。
¥locale.utcFormat - create a UTC formatter.
locale.utcParse - 创建 UTC 解析器。
¥locale.utcParse - create a UTC parser.
d3.timeFormatLocale - 定义自定义语言环境。
¥d3.timeFormatLocale - define a custom locale.
d3.timeFormatDefaultLocale - 定义默认语言环境。
¥d3.timeFormatDefaultLocale - define the default locale.
d3-timer
一个用于管理数千个并发动画的高效队列。
¥An efficient queue for managing thousands of concurrent animations.
d3.now - 获取当前高分辨率时间。
¥d3.now - get the current high-resolution time.
d3.timer - 安排一个新的计时器。
¥d3.timer - schedule a new timer.
timer.restart - 重置计时器的启动时间和回调。
¥timer.restart - reset the timer’s start time and callback.
timer.stop - 停止计时器。
¥timer.stop - stop the timer.
d3.timerFlush - 立即执行任何符合条件的计时器。
¥d3.timerFlush - immediately execute any eligible timers.
d3.timeout - 安排一个在第一次回调时停止的计时器。
¥d3.timeout - schedule a timer that stops on its first callback.
d3.interval - 安排一个以可配置周期调用的计时器。
¥d3.interval - schedule a timer that is called with a configurable period.
d3-transition
selections 的动画过渡。
¥Animated transitions for selections.
selection.transition - 为选定元素安排转换。
¥selection.transition - schedule a transition for the selected elements.
selection.interrupt - 中断并取消选定元素上的过渡。
¥selection.interrupt - interrupt and cancel transitions on the selected elements.
d3.interrupt - 中断给定节点的活动过渡。
¥d3.interrupt - interrupt the active transition for a given node.
d3.transition - 在根文档元素上安排转换。
¥d3.transition - schedule a transition on the root document element.
transition.select - 在选定元素上安排转换。
¥transition.select - schedule a transition on the selected elements.
transition.selectAll - 在选定元素上安排转换。
¥transition.selectAll - schedule a transition on the selected elements.
transition.selectChild - 为每个选定元素选择一个子元素。
¥transition.selectChild - select a child element for each selected element.
transition.selectChildren - 为每个选定元素选择子元素。
¥transition.selectChildren - select the children elements for each selected element.
transition.selection - 返回此转换的选择。
¥transition.selection - returns a selection for this transition.
transition.filter - 根据数据过滤元素。
¥transition.filter - filter elements based on data.
transition.merge - 将此过渡与另一个过渡合并。
¥transition.merge - merge this transition with another.
transition.transition - 在此转换之后安排一个新的转换。
¥transition.transition - schedule a new transition following this one.
d3.active - 为给定节点选择活动过渡。
¥d3.active - select the active transition for a given node.
transition.attr - 使用默认插值器对给定属性进行补间。
¥transition.attr - tween the given attribute using the default interpolator.
transition.attrTween - 使用自定义插值器对给定属性进行补间。
¥transition.attrTween - tween the given attribute using a custom interpolator.
transition.style - 使用默认插值器对给定样式属性进行补间。
¥transition.style - tween the given style property using the default interpolator.
transition.styleTween - 使用自定义插值器对给定样式属性进行补间。
¥transition.styleTween - tween the given style property using a custom interpolator.
transition.text - 设置过渡开始时的文本内容。
¥transition.text - set the text content when the transition starts.
transition.textTween - 使用自定义插值器对文本进行补间。
¥transition.textTween - tween the text using a custom interpolator.
transition.remove - 在过渡结束时移除选定的元素。
¥transition.remove - remove the selected elements when the transition ends.
transition.tween - 在转换期间运行自定义代码。
¥transition.tween - run custom code during the transition.
transition.delay - 指定每个元素的延迟时间(以毫秒为单位)。
¥transition.delay - specify per-element delay in milliseconds.
transition.duration - 指定每个元素的持续时间(以毫秒为单位)。
¥transition.duration - specify per-element duration in milliseconds.
transition.ease - 指定缓动函数。
¥transition.ease - specify the easing function.
transition.easeVarying - 指定缓动函数工厂。
¥transition.easeVarying - specify an easing function factory.
transition.end - 一个承诺,在转换结束时解析。
¥transition.end - a promise that resolves when a transition ends.
transition.on - 等待转换结束。
¥transition.on - await the end of a transition.
transition.each - 为每个元素调用一个函数。
¥transition.each - call a function for each element.
transition.call - 使用此转换调用一个函数。
¥transition.call - call a function with this transition.
transition.empty - 如果此转换为空,则返回 true。
¥transition.empty - returns true if this transition is empty.
transition.nodes - 返回所有选定元素的数组。
¥transition.nodes - returns an array of all selected elements.
transition.node - 返回第一个(非空)元素。
¥transition.node - returns the first (non-null) element.
transition.size - 返回元素数量。
¥transition.size - returns the count of elements.
d3-zoom
使用鼠标或触摸输入平移和缩放 SVG、HTML 或 Canvas。
¥Pan and zoom SVG, HTML or Canvas using mouse or touch input.
d3.zoom - 创建一个缩放行为。
¥d3.zoom - create a zoom behavior.
zoom - 将缩放行为应用于选定元素。
¥zoom - apply the zoom behavior to the selected elements.
zoom.transform - 更改所选元素的变换。
¥zoom.transform - change the transform for the selected elements.
zoom.translateBy - 平移选定元素的变换。
¥zoom.translateBy - translate the transform for the selected elements.
zoom.translateTo - 平移选定元素的变换。
¥zoom.translateTo - translate the transform for the selected elements.
zoom.scaleBy - 缩放所选元素的变换。
¥zoom.scaleBy - scale the transform for the selected elements.
zoom.scaleTo - 缩放所选元素的变换。
¥zoom.scaleTo - scale the transform for the selected elements.
zoom.constrain - 覆盖变换约束逻辑。
¥zoom.constrain - override the transform constraint logic.
zoom.filter - 控制哪些输入事件启动缩放。
¥zoom.filter - control which input events initiate zooming.
zoom.touchable - 设置触摸支持检测器。
¥zoom.touchable - set the touch support detector.
zoom.wheelDelta - 覆盖滚轮事件的缩放比例。
¥zoom.wheelDelta - override scaling for wheel events.
zoom.extent - 设置视口的范围。
¥zoom.extent - set the extent of the viewport.
zoom.scaleExtent - 设置允许的缩放范围。
¥zoom.scaleExtent - set the allowed scale range.
zoom.translateExtent - 设置可缩放世界的范围。
¥zoom.translateExtent - set the extent of the zoomable world.
zoom.clickDistance - 设置点击距离阈值。
¥zoom.clickDistance - set the click distance threshold.
zoom.tapDistance - 设置点击距离阈值。
¥zoom.tapDistance - set the tap distance threshold.
zoom.duration - 设置缩放过渡的持续时间。
¥zoom.duration - set the duration of zoom transitions.
zoom.interpolate - 控制缩放过渡的插值。
¥zoom.interpolate - control the interpolation of zoom transitions.
zoom.on - 监听缩放事件。
¥zoom.on - listen for zoom events.
d3.zoomTransform - 获取给定元素的缩放变换。
¥d3.zoomTransform - get the zoom transform for a given element.
transform.scale - 按指定量缩放变换。
¥transform.scale - scale a transform by the specified amount.
transform.translate - 按指定量平移变换。
¥transform.translate - translate a transform by the specified amount.
transform.apply - 将变换应用于给定点。
¥transform.apply - apply the transform to the given point.
transform.applyX - 将变换应用于给定的 x 坐标。
¥transform.applyX - apply the transform to the given x-coordinate.
transform.applyY - 将变换应用于给定的 y 坐标。
¥transform.applyY - apply the transform to the given y coordinate.
transform.invert - 取消对给定点应用变换。
¥transform.invert - unapply the transform to the given point.
transform.invertX - 取消对给定 x 坐标应用变换。
¥transform.invertX - unapply the transform to the given x-coordinate.
transform.invertY - 取消对给定 y 坐标应用变换。
¥transform.invertY - unapply the transform to the given y coordinate.
transform.rescaleX - 将变换应用于 x 轴缩放范围。
¥transform.rescaleX - apply the transform to an x scale’s domain.
transform.rescaleY - 将变换应用于 y 轴缩放范围。
¥transform.rescaleY - apply the transform to a y scale’s domain.
transform.toString - 将转换格式化为 SVG 转换字符串。
¥transform.toString - format the transform as an SVG transform string.
d3.zoomIdentity - 恒等变换。
¥d3.zoomIdentity - the identity transform.