XYChart 轴配置模式
https://mermaid.npmjs.net.cn/schemas/config.schema.json#/$defs/XYChartAxisConfig此对象包含 XYChart 轴配置的配置
| 抽象 | 可扩展 | 状态 | 可识别 | 自定义属性 | 附加属性 | 访问限制 | 定义于 |
|---|---|---|---|---|---|---|---|
| 可以实例化 | 否 | 未知状态 | 否 | 禁止 | 允许 | 无 | config.schema.json* |
XYChartAxisConfig 类型
object (XYChart 轴配置)
XYChartAxisConfig 属性
| 属性 | 类型 | 必需 | 可为空 | 定义于 |
|---|---|---|---|---|
| showLabel | boolean | 必需 | 不能为 null | Mermaid 配置 |
| labelFontSize | number | 必需 | 不能为 null | Mermaid 配置 |
| labelPadding | number | 必需 | 不能为 null | Mermaid 配置 |
| showTitle | boolean | 必需 | 不能为 null | Mermaid 配置 |
| titleFontSize | number | 必需 | 不能为 null | Mermaid 配置 |
| titlePadding | number | 必需 | 不能为 null | Mermaid 配置 |
| showTick | boolean | 必需 | 不能为 null | Mermaid 配置 |
| tickLength | number | 必需 | 不能为 null | Mermaid 配置 |
| tickWidth | number | 必需 | 不能为 null | Mermaid 配置 |
| showAxisLine | boolean | 必需 | 不能为 null | Mermaid 配置 |
| axisLineWidth | number | 必需 | 不能为 null | Mermaid 配置 |
showLabel
是否显示轴标签(刻度文本)
showLabel
是必需的
类型:
boolean不能为 null
定义于:Mermaid 配置
showLabel 类型
boolean
showLabel 默认值
默认值为
truelabelFontSize
轴标签(刻度文本)的字体大小
labelFontSize
是必需的
类型:
number不能为 null
定义于:Mermaid 配置
labelFontSize 类型
number
labelFontSize 约束
最小值:此数字的值必须大于或等于:1
labelFontSize 默认值
默认值为
14labelPadding
轴标签(刻度文本)的顶部和底部空间
labelPadding
是必需的
类型:
number不能为 null
定义于:Mermaid 配置
labelPadding 类型
number
labelPadding 约束
最小值:此数字的值必须大于或等于:0
labelPadding 默认值
默认值为
5showTitle
是否显示轴标题
showTitle
是必需的
类型:
boolean不能为 null
定义于:Mermaid 配置
showTitle 类型
boolean
showTitle 默认值
默认值为
truetitleFontSize
轴标题的字体大小
titleFontSize
是必需的
类型:
number不能为 null
定义于:Mermaid 配置
titleFontSize 类型
number
titleFontSize 约束
最小值:此数字的值必须大于或等于:1
titleFontSize 默认值
默认值为
16titlePadding
轴标题的顶部和底部空间
titlePadding
是必需的
类型:
number不能为 null
定义于:Mermaid 配置
titlePadding 类型
number
titlePadding 约束
最小值:此数字的值必须大于或等于:0
titlePadding 默认值
默认值为
5showTick
是否显示轴刻度线
showTick
是必需的
类型:
boolean不能为 null
定义于:Mermaid 配置
showTick 类型
boolean
showTick 默认值
默认值为
truetickLength
轴刻度线的长度
tickLength
是必需的
类型:
number不能为 null
定义于:Mermaid 配置
tickLength 类型
number
tickLength 约束
最小值:此数字的值必须大于或等于:1
tickLength 默认值
默认值为
5tickWidth
轴刻度线的宽度
tickWidth
是必需的
类型:
number不能为 null
定义于:Mermaid 配置
tickWidth 类型
number
tickWidth 约束
最小值:此数字的值必须大于或等于:1
tickWidth 默认值
默认值为
2showAxisLine
显示横跨轴的线
showAxisLine
是必需的
类型:
boolean不能为 null
定义于:Mermaid 配置
showAxisLine 类型
boolean
showAxisLine 默认值
默认值为
trueaxisLineWidth
轴线的宽度
axisLineWidth
是必需的
类型:
number不能为 null
定义于:Mermaid 配置
axisLineWidth 类型
number
axisLineWidth 约束
最小值:此数字的值必须大于或等于:1
axisLineWidth 默认值
默认值为
2