样式设置


常见图表元素样式属性

图表元素 文字属性 背景属性 位置/组件宽度属性 轴线属性 标注属性 刻度属性 轴线辅助线属性 轴线辅助面属性 指示器属性 索引问题
标题
title
  • textStyle
  • subtextStyle
  • backgroundColor
  • borderColor
  • top/bottom
  • left/right
  • width/height
坐标轴
xAxis/yAxis
angleAxis
radiusAxis
radar
calendar
nameTextStyle axisLine axisLabel axisTick splitLine splitArea (option 对象的属性)axisPointer gridIndex
图框
grid
  • backgroundColor
  • borderColor
图表元素 标注属性 数据样式属性 数据标注属性 索引问题
数据列表
series
label itemStyle
lineStyle
areaStyle
markPoint
markLine
markArea
xAxisIndex
polarIndex

坐标轴指示器

高亮样式设置

多系列图表的索引

在多系列图表中,绘图网格 grid 设置每个图表的定位参数。

每个图表的坐标轴,如 xAxis,对应一个网格索引 gridIndex,每个图表的数据 series 对应一个坐标轴索引,如 xAxisIndex