# 接口: BarOptions
# 层次结构
Omit<CommonElementOptions,"borderWidth">↳
BarOptions
# 属性
# backgroundColor
• backgroundColor: Color
# 继承自
Omit.backgroundColor
# 定义于
types/index.d.ts:1807 (在新窗口中打开)
# base
• base: number
条形图在数据轴上的基准值,以数据单位表示。
# 定义于
types/index.d.ts:2080 (在新窗口中打开)
# borderColor
• borderColor: Color
# 继承自
Omit.borderColor
# 定义于
types/index.d.ts:1806 (在新窗口中打开)
# borderRadius
• borderRadius: number | BorderRadius
圆角
默认值
0
# 定义于
types/index.d.ts:2092 (在新窗口中打开)
# borderSkipped
• borderSkipped: boolean | "end" | "start" | "left" | "top" | "bottom" | "right" | "middle"
跳过的(排除的)边框: 'start', 'end', 'left', 'right', 'bottom', 'top', 'middle', false (无) 或 true (全部)。
默认值
'start'
# 定义于
types/index.d.ts:2086 (在新窗口中打开)
# borderWidth
• borderWidth: number | { bottom?: number ; left?: number ; right?: number ; top?: number }
边框宽度,数字表示所有边框的宽度,对象表示指定每一边的宽度。
默认值
0
# 定义于
types/index.d.ts:2105 (在新窗口中打开)
# inflateAmount
• inflateAmount: number | "auto"
矩形膨胀量。这可用于隐藏条形图之间的瑕疵。单位为像素。'auto' 当 barPercentage * categoryPercentage 为 1 时,转换为 0.33 像素,否则为 0。
默认值
'auto'