主题
XYChart axis config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/XYChartAxisConfig
此对象包含 XYChart 轴配置的配置
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
XYChartAxisConfig Type
object
(XYChart axis config)
XYChartAxisConfig Properties
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
showLabel | boolean | Required | cannot be null | Mermaid Config |
labelFontSize | number | Required | cannot be null | Mermaid Config |
labelPadding | number | Required | cannot be null | Mermaid Config |
showTitle | boolean | Required | cannot be null | Mermaid Config |
titleFontSize | number | Required | cannot be null | Mermaid Config |
titlePadding | number | Required | cannot be null | Mermaid Config |
showTick | boolean | Required | cannot be null | Mermaid Config |
tickLength | number | Required | cannot be null | Mermaid Config |
tickWidth | number | Required | cannot be null | Mermaid Config |
showAxisLine | boolean | Required | cannot be null | Mermaid Config |
axisLineWidth | number | Required | cannot be null | Mermaid Config |
showLabel
应显示轴标签(刻度文本)
showLabel
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showLabel Type
boolean
showLabel Default Value
The default value is:
json
true
labelFontSize
轴标签的字体大小(刻度文本)
labelFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
labelFontSize Type
number
labelFontSize Constraints
minimum: the value of this number must greater than or equal to: 1
labelFontSize Default Value
The default value is:
json
14
labelPadding
轴标签(刻度文本)的顶部和底部空间
labelPadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
labelPadding Type
number
labelPadding Constraints
minimum: the value of this number must greater than or equal to: 0
labelPadding Default Value
The default value is:
json
5
showTitle
应显示轴标题
showTitle
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showTitle Type
boolean
showTitle Default Value
The default value is:
json
true
titleFontSize
轴标题的字体大小
titleFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
titleFontSize Type
number
titleFontSize Constraints
minimum: the value of this number must greater than or equal to: 1
titleFontSize Default Value
The default value is:
json
16
titlePadding
轴标题的顶部和底部空间
titlePadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
titlePadding Type
number
titlePadding Constraints
minimum: the value of this number must greater than or equal to: 0
titlePadding Default Value
The default value is:
json
5
showTick
应显示轴刻度线
showTick
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showTick Type
boolean
showTick Default Value
The default value is:
json
true
tickLength
轴刻度线的长度
tickLength
is required
Type:
number
cannot be null
defined in: Mermaid Config
tickLength Type
number
tickLength Constraints
minimum: the value of this number must greater than or equal to: 1
tickLength Default Value
The default value is:
json
5
tickWidth
轴刻度线的宽度
tickWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
tickWidth Type
number
tickWidth Constraints
minimum: the value of this number must greater than or equal to: 1
tickWidth Default Value
The default value is:
json
2
showAxisLine
显示跨轴线
showAxisLine
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showAxisLine Type
boolean
showAxisLine Default Value
The default value is:
json
true
axisLineWidth
轴线的宽度
axisLineWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
axisLineWidth Type
number
axisLineWidth Constraints
minimum: the value of this number must greater than or equal to: 1
axisLineWidth Default Value
The default value is:
json
2