ECharts Extension

图表配置项

各图表的配置项名称、说明和可选值。

布局核心

echarts-layout-core 80 个配置项 示例
配置项 说明 可选值
type 选择要运行的图布局算法。 'radial' | 'concentric' | 'grid' | 'mds' | 'arc'
input 汇总图布局输入数据和连线配置。 对象
width 布局视口宽度。 数字
height 布局视口高度。 数字
center 布局视口内的中心点。 [数字 | 字符串, 数字 | 字符串]
nodeSize 布局间距和防重叠处理使用的节点 diameter。 数字 | 数字[] | 函数
nodeSpacing 每个节点周围的额外间距。 数字 | 函数
preventOverlap 分隔节点 when a 布局 can otherwise place them too close。 布尔值
preventOverlapPadding 防重叠处理使用的额外间距。 数字
sortBy 对节点 before 布局s that use 顺序ing排序。 字符串 | 函数
linkDistance 相连节点之间的目标距离。 数字
focusNode 节点 ID or 名称 used as the 径向 中心点。 字符串 | 数字
unitRadius 径向图层级之间的距离。 数字
strictRadial 保持径向 节点 on strict level 环。 布尔值
maxIteration 最大值 布局 iterations for 径向 refinement。 数字
maxPreventOverlapIteration 防重叠处理使用的最大值 iterations。 数字
sortStrength Weight applied when 排序后 径向 节点 share a 环。 数字
maxLevelDiff 最大值 score difference before 同心 节点 move to a new level。 数字
sweep 径向 or 同心 placement使用的角度 span。 数字 (radians)
equidistant 强制同心 levels to use equal 环 间距。 布尔值
startAngle 开始ing 角度 for 环形 布局s。 数字 (radians)
clockwise 放置环形 节点 顺时针。 布尔值
rows 网格布局请求的行数。 数字
cols 网格布局请求的列数。 数字
begin 网格布局左上角起点。 [数字 | 字符串, 数字 | 字符串]
condense 允许网格 cells shrink to the 最小值 大小 needed by 节点。 布尔值
position 固定网格 节点 to 显式 行 and 列 cells。 函数(node) => { row, col }
nodeSep 弧形布局中节点之间的水平间距。 数字