XYChart axis config Schema
https://mermaid.js.org/schemas/config.schema.json#/$defs/XYChartAxisConfig
This object contains configuration for XYChart axis config
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
Should show the axis labels (tick text)
showLabel
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showLabel Type
boolean
showLabel Default Value
The default value is:
true
labelFontSize
font size of the axis labels (tick text)
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:
14
labelPadding
top and bottom space from axis label (tick text)
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:
5
showTitle
Should show the axis title
showTitle
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showTitle Type
boolean
showTitle Default Value
The default value is:
true
titleFontSize
font size of the axis title
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:
16
titlePadding
top and bottom space from axis title
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:
5
showTick
Should show the axis tick lines
showTick
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showTick Type
boolean
showTick Default Value
The default value is:
true
tickLength
length of the axis tick lines
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:
5
tickWidth
width of the axis tick lines
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:
2
showAxisLine
Show line across the axis
showAxisLine
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showAxisLine Type
boolean
showAxisLine Default Value
The default value is:
true
axisLineWidth
Width of the axis line
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:
2