主题
组件
参阅 术语查询手册
标题(title)
text
:主标题内容subtext
:副标题内容left
/top
:位置控制textStyle
/subtextStyle
:文本样式
图例(legend)
type
:plain
(普通图例) /scroll
(可滚动)data
:图例项orient
:布局方向(horizontal
/vertical
)left
/top
:位置textStyle
:文本样式
坐标系(grid)(适用于直角坐标系)
left
/right
/top
/bottom
:边距containLabel
:是否包含坐标轴标签backgroundColor
:背景色borderColor
:边框颜色
x 轴(xAxis) / y 轴(yAxis)
type
:value
(数值轴) /category
(类目轴) /time
(时间轴) /log
(对数轴)data
:类目轴数据(仅适用于category
类型)axisLine
:坐标轴线show
:是否显示lineStyle
:颜色、宽度等
axisTick
:刻度线show
:是否显示alignWithLabel
:是否对齐标签
axisLabel
:轴标签rotate
:旋转角度formatter
:格式化回调
splitLine
:分割线min
/max
:数据范围
数据缩放(dataZoom)
type
:inside
(内置滑动) /slider
(外部滑动条)start
/end
:初始缩放范围filterMode
:过滤模式(filter
/weakFilter
/empty
/none
)
视觉映射(visualMap)(适用于热力图、散点图等)
type
:continuous
(连续映射) /piecewise
(分段映射)min
/max
:数据范围inRange
:映射规则,如颜色渐变
提示框(tooltip)
trigger
:触发方式(item
/axis
/none
)formatter
:自定义提示内容backgroundColor
/textStyle
:样式
辅助标记(markPoint / markLine / markArea)
- 标注点(markPoint):如最大值、最小值、平均值
type
:max
/min
/average
symbol
:图形类型
- 标注线(markLine):如趋势线、基准线
type
:average
/max
/min
data
:自定义点
- 标注区域(markArea):如区间范围
data
:起点、终点
轴指示器(axisPointer)(与 tooltip 配合)
type
:line
(直线) /shadow
(阴影) /cross
(十字) /none
snap
:是否自动对齐数据点
直角坐标系(polar)(极坐标)
radius
/angleAxis
/radiusAxis
:极坐标轴配置
平行坐标系(parallel)(适用于高维数据可视化)
parallelAxis
:各轴配置parallel
:平行坐标系的全局配置
地图(geo / map)
geo
:地理坐标系(配合 scatter、effectScatter)map
:地图组件(配合series.type: 'map'
)
日历(calendar)
range
:时间范围orient
:布局方向
其他
toolbox
:工具栏(如保存图片、数据缩放、重置等)graphic
:自定义图形(如文本、图片、矩形)dataset
:数据集(适用于数据转换)